Hi R,

 

Just came across the 'mode' of an object. What is the basic difference
between ?class and ?mode...For example:

 

d=data.frame(a=c(1,2),b=c(5,6))

class(d)

[1] "data.frame"

mode(d)

[1] "list"

 

But,

 

c=c(2,3,5,6,7)

class(c)

[1] "numeric"

mode(c)

[1] "numeric"

 

Could anyone help me out...

 

Thanks,

shubha

 

This e-mail may contain confidential and/or privileged i...{{dropped:13}}

______________________________________________
R-help@r-project.org 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.

Reply via email to