[R] How to deal with character(0)?

Gang Chen gangchen at mail.nih.gov
Thu Nov 15 22:54:45 CET 2007


I want to identify whether a variable is character(0), but get lost.  
For example, if I have

 > dd<-character(0)

the following doesn't seem to serve as a good identifier:

 > dd==character(0)
logical(0)

So how to detect character(0)?

Thanks,
Gang



More information about the R-help mailing list