Converting numerical factor to numeric

Post date: Dec 30, 2014 9:16:51 AM

There are times when importing data form csv and the float is undesirably imported as factor rather than numeric. What we can do is to use the following command:

as.numeric(as.character(x))

The discussion here is very helpful.