[R] When factor is better than other types, such as vector and frame?

Patrick Connolly p_connolly at slingshot.co.nz
Sun Aug 23 10:32:35 CEST 2009

On Sat, 22-Aug-2009 at 10:00PM -0500, Peng Yu wrote:

|> Hi,
|> It is easy to understand the types vector and frame.

Types of what?  Class of object?  Doesn't seem likely.  What do you
mean by frame?  It's a function, and a vector can be a factor,
numeric, logical or character (and probably a few others).

I really don't know what your question is about.  Maybe someone else
can guess what it is you want to know.

|> But I am wondering why the type factor is designed in R. What is
|> the advantage of factor compare with other data types in R? Can
|> somebody give an example in which case the type factor is much
|> better than other data types?

   ___    Patrick Connolly   
 {~._.~}                   Great minds discuss ideas    
 _( Y )_  	         Average minds discuss events 
(:_~*~_:)                  Small minds discuss people  
 (_)-(_)  	                      ..... Eleanor Roosevelt

More information about the R-help mailing list