To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
I want to group the data set by code, then add up the amount. However R is reading the Amount values as a factor rather than numeric. I have over 3,000 rows with 5 values
It would be even better if you read the information in the link and acted on it, but on this occasion, I can at least diagnose your problem immediately. You have commas in the character string representation of Amount. as.numeric won't know what to do with that.
You have two options.
use string functions to edit out the commas, perhaps base::gsub()
use a function that is designed to interpret numbers from text, perhaps readr::parse_number()
in both cases you want to convert from the factors you have to strings first, with as.character()