[R] levels

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed May 7 17:38:20 CEST 2003

De Amicis Fabrizio (G.I.T.) wrote:
> Hello,
> Thanks to all for the previus answer. I want to be more detailed:
> I have a dataset called gm20011231 with 1304 observations (or records). 
> I want to create a subset with the followin command
> j2<-gm20011231[1:10,"V4"]
> the levels of "V4"  is 1304 and the and the length(j2) is 10. 
> Do you know how to obtain a j2 with level 10?
> Thank you
> Fabrizio

I don't know why you are going to do that, but you can change the levels 
  with level(), see ?level for details.

Uwe Ligges

More information about the R-help mailing list