I imported data from a .csv file, and attached the dataset. My problem: one variable is in integer form and has 295 levels. I need to use this variable to create others
or you can simply use
d$x2 = as.numeric(as.character(d$x)).
d$x2 = as.numeric(as.character(d$x))