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}}

