Re: [R] repeating values in levels()

2009-10-19 Thread Donald Braman
Thanks! I've figured out how to fix it, but how I got here is still a puzzle. :-) Cheers, Don On Sat, Oct 17, 2009 at 5:36 PM, Peter Ehlers wrote: > > Donald Braman wrote: > >> Can someone help me understand this results? >> >> levels(as.factor(miset1$facts_convict)) >>> >> [1] "1" "1" "2"

Re: [R] repeating values in levels()

2009-10-17 Thread Peter Ehlers
Donald Braman wrote: Can someone help me understand this results? levels(as.factor(miset1$facts_convict)) [1] "1" "1" "2" "3" "4" "5" "6" Don't know how you got your data that way, but I wonder if you've done str() on your data after whatever procedure you used to get to this stage. Here's

[R] repeating values in levels()

2009-10-17 Thread Donald Braman
Can someone help me understand this results? > levels(as.factor(miset1$facts_convict)) [1] "1" "1" "2" "3" "4" "5" "6" converting to numeric and back doesn't seem to help: > levels(as.factor(as.numeric(miset1$facts_convict))) [1] "1" "1" "2" "3" "4" "5" "6" It's messing up my ologits.  Any way