I've merged two datasets in R of both numeric and categorical variables. A column of data, constant GDP is represented as numbers (ex: 478.3044, 568.1392). However, R interprets this column as a factor:
is.numeric(data$GDP)
#[1] FALSE
I have attempted to convert to numerical values with as.numeric(data$GDP)
but R still determines the column to be categorical.
Is there any way to convert this data within the data frame?