[R] level assignment

Christian Schulz ozric at web.de
Tue Jun 8 14:29:24 CEST 2004


many thanks!

christian


> I'm not sure what exactly you are trying to do, but does replacing
>
>   as.factor(msegmente[,i])
>
> by
>
>   factor(msegmente[,i],
>          levels = c(1, 3, 10, 29, 32, 38, 52, 53, 59),
>          labels = c("AK","GC","OC","AM","IA","ACH","ZBA","A9L","EHK"))
>
> yield the desired result?
>
> hth,
> Z
>
> > Many thanks for any hint/help
> > Christian
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
> > http://www.R-project.org/posting-guide.html




More information about the R-help mailing list