Re: [R] Mode Vs Class

2008-04-09 Thread Heinz Tuechler
ugh x has mode numeric again, its new class, >'factor', inhibits it being used in arithmetic operations. > >In practice, mode is not used very much, other than to define a class >implicitly when no explicit class has been assigned. > >-Original Message- &g

Re: [R] Mode Vs Class

2008-04-08 Thread Bill.Venables
e, even though x has mode numeric again, its new class, 'factor', inhibits it being used in arithmetic operations. In practice, mode is not used very much, other than to define a class implicitly when no explicit class has been assigned. -Original Message- From: [EMAIL PROTECTED]

[R] Mode Vs Class

2008-04-08 Thread Shubha Vishwanath Karanth
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