0

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?

Ronak Shah
  • 377,200
  • 20
  • 156
  • 213
BeginneR
  • 1
  • 2

0 Answers0