Hey guys so im trying to convert a vector containing all factor values as shown in the image below to an integer vector:
I have tried data$rate=as.numeric(data$rate)
and this gives me the frequencies of all the ratings as num, and data$rate=as.numeric(as.character(data$rate))
gives me all NA values.
I'd like to convert to normal int or num thanks.