[R] Factor problem

R. Michael Weylandt michael.weylandt at gmail.com
Tue May 29 22:05:57 CEST 2012


Please don't double post. (And see my reply to your other thread)

Michael

On Tue, May 29, 2012 at 1:50 PM, Raúl Bajo <raulbajob at gmail.com> wrote:
> HI!
>
> I am working with a table with quantitative and qualitative data; one of
> the columns is "Level of education", which is an ordered factor. I want to
> get rid of the ordered factor, and set my own scale. How to do that? All
> the time I get the following error:
>
> In `[<-.factor`(`*tmp*`, educa = "Less than high school", value = 3) :
>  invalid factor level, NAs generated
>
> Thanks,
>
> Raúl
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list