search for: abrdat2

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

Did you mean: abrdat
2005 Jun 01
1
many chr2factors ?
...length(df)) + break } + } > > tofac(abrdat) [1] 7 [1] 8 [1] 9 [1] 11 [1] 13 [1] 15 Error in "[.data.frame"(df, , i) : undefined columns selected This are the correct columns and i get the idea put into the loop a empty matrix with dimension like df and return it!? Another check? abrdat2 <- apply(abrdat,2,function(x) ifelse(is.character(x),as.factor(x),x)) many thanks & regards, christian