[R] How to show classes of all columns of a data frame?

From: T Mu <muster_at_gmail.com>
Date: Wed 16 Aug 2006 - 03:10:46 EST


Hi all,

Suppose I have a data frame myDF, col A is factor, col B is numeric, col C is character. I can get their classes by

> class(myDF$A)

but is there a quick way to show what classes of all columns are? Thank you.

Tian

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed Aug 16 03:18:15 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 16 Aug 2006 - 04:20:13 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.