January 2015
M T W T F S S
« May    
 1234
567891011
12131415161718
19202122232425
262728293031  

Find type of variables in a data frame

sapply(a,class) gives type of field (character, numeric, or factor) for each variable in the data frame a.

Comments are closed.