Re: [R] issue with levels of a factor after subsetting

2009-10-26 Thread marcos carvajalino
Thanks Phil, exactly what i was looking for!! 2009/10/26 Phil Spector : > Marcos - >   Either refer to > > levels(factor(car4$Rio)) > > or > > levels(car4$Rio[,drop=TRUE]) > > to show only the levels that are present in the variable. > >                                        - Phil Spector >    

[R] issue with levels of a factor after subsetting

2009-10-26 Thread marcos carvajalino
Hi Second question in a day, i'm beginnning to feel incompetent... This time i'm having a weird problem, i'm importing the next data base: >car<-read.csv2("Historicos.csv") 'data.frame': 1818 obs. of 6 variables: $ Dpto : Factor w/ 11 levels "ANTIOQUIA","ATLÁNTICO",..: 2 2 2 2 2 1 1 1 1 5