Re: [R] Levels of a factor

2013-07-25 Thread Borja Rivier
...@r-project.org] On Behalf Of Borja Rivier Sent: Wednesday, July 24, 2013 8:25 AM To: r-help@r-project.org Subject: [R] Levels of a factor Hi all, I am having a bit of trouble using the levels() function. I have a factor with many elements, and when I use the function levels() to extract

[R] Levels of a factor

2013-07-24 Thread Borja Rivier
Hi all, I am having a bit of trouble using the levels() function. I have a factor with many elements, and when I use the function levels() to extract the list of unique elements, some of the elements returned are not actually in the factor. For example I would have this: vector -