[R] numeric data being interpreted as a factor -trouble with reading data into a dataframe in R

Bill william108 at gmail.com
Sun Oct 27 22:33:04 CET 2013


Hello.
trying to do one of the simplest actions -read in data into R.
I don't know why the FBfollowers column is being read as a factor and also
if I use as.numeric on it, it looks really strange and actually complety
alters the data.
I am attaching the data set here called ddd.csv
I used
data=read.csv("ddd.csv",header=TRUE)

fb=data$FBfollowers
fb
fb=as.numeric(fb)
fb

Thnxs in advance


More information about the R-help mailing list