[R] how to find out whether a string is a factor?

2011-07-12 Thread Sam Steingold
I have two data frames: str(ysmd) 'data.frame': 8325 obs. of 6 variables: $ X.stock : Factor w/ 8325 levels A,AA,AA-,..: 2702 6547 4118 7664 7587 6350 3341 5640 5107 7589 ... $ market.cap : num -1.00 2.97e+10 3.54e+08 3.46e+08 -1.00 ... $

Re: [R] how to find out whether a string is a factor?

2011-07-12 Thread David Winsemius
On Jul 12, 2011, at 10:12 AM, Sam Steingold wrote: I have two data frames: str(ysmd) 'data.frame': 8325 obs. of 6 variables: $ X.stock : Factor w/ 8325 levels A,AA,AA-,..: 2702 6547 4118 7664 7587 6350 3341 5640 5107 7589 ... $ market.cap : num