lamack lamack wrote: > Dear all, how can I select only the numeric (or character) variables from a > date.frame? > > Best regards >
Try: x[sapply(x, is.numeric)] x[sapply(x, is.character)] where `x' is your data.frame. --sundar ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
