> Dear all,
> I am really new to R, and I have problem here. I searched around, but did
> not get a solution.
> I have a numetrix matrix (20 by 25) saved in .csv. I read it as
> Then I try to convert it to numeric using
> Error: (list) object cannot be coerced to type 'double'
> The class of sx is "data.frame".
> I tried to unlist it as,
> s<-unlist(sx), but when I look at the dimension,
> > dim(s)
> Can anyone tell me how should I load my data as a numeric matrix rather
> "data.frame", or how to convert the data.frame matrix into numeric?
> Thank you very much.
> View this message in context:
> http://n4.nabble.com/coerce-list-object-to-type-double-tp1562988p1562988.html > Sent from the R help mailing list archive at Nabble.com.
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.