search for: prmdf

Displaying 1 result from an estimated 1 matches for "prmdf".

Did you mean: pmdf
2009 Nov 16
3
lapply() not converting columns to factors (no error message)
...obvious. Thanks a lot, Aditi (P.s.- I've tried converting columns one by one to factors this time, and that works. >P1L55<-factor(P1L55) >levels(P1L55) >[1] "0" "1" Code: prm<-read.table("P:\\..... .csv", header=T, ...sep=",", ...) prmdf<-data.frame(prm) prmdf[2:13]<-lapply(prmdf[2:13], factor) ## action performed, no error message ##I tried to pick random columns and check >levels(P1L55) >NULL >is.factor(P1L96) >FALSE ---------------------- A Singh Aditi.Singh at bristol.ac.uk School of Biological Sciences...