[R] how to check a R object's property
helprhelp at gmail.com
Tue Nov 14 21:07:04 CET 2006
I am writing a generic function and need to check if an arg is a data
frame or not. I could use
is.null(dim(x)) to get what i want. But i want to know if there is a
function which can tell me whether it is a list, a numeric vector, a
data frame, a factor and so on. Can R do that?
Weiwei Shi, Ph.D
"Did you always know?"
"No, I did not. But I believed..."
More information about the R-help