I am working on a dataset that has 2 Price formatted variables that are currently read as character format. I need them to be numerical. I have tried the following different examples but all have created more than a thousand nas when I run it.
dataframe$Price <-as.numeric(dataframe$Price)
dataframe$Price <-as.numeric(as.character(dataframe$Price))
If I run it as
as.numeric(dataframe$Price)
It doesn't change the variable. I am relatively new to R (about 2 months) and I have no idea what I'm doing. I appreciate any help!