[R] PROBLEMS with In `[<-.factor`(`*tmp*`, (¿ORDERED FACTOR?)

Bert Gunter gunter.berton at gene.com
Tue May 29 22:25:56 CEST 2012


...and

On Tue, May 29, 2012 at 1:04 PM, R. Michael Weylandt
<michael.weylandt at gmail.com> wrote:
> Read this: http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
>
> Read the posting guide:  http://www.R-project.org/posting-guide.html
>
> and try again.
>
> It's entirely impossible to help you as is.

... and almost certain that he shouldn't be doing this anyway. There
is almost no good reason to do this in R and many good reasons why one
shouldn't.

-- Bert

>
> Michael
>
> On Tue, May 29, 2012 at 2:01 PM, RBB <raulbajob at gmail.com> wrote:
>> HI!!!
>>
>> I have a table containing qualitative and quantitative data; one of the
>> columns contains  "Level of education", and the possibilities are "none",
>> "High school", "college"; I want to give the value 0 to "none", the value 1
>> to "High school", and 2 to "college", but I got the following error:
>>
>> In `[<-.factor`(`*tmp*`, educa = "college", value = 2) :
>>  invalid factor level, NAs generated
>>
>>
>> WHAT IS WRONG????? :S :S :S
>>
>>
>> THANKS A LOT!!!!!!!!!!!!!!
>>
>> --
>> View this message in context: http://r.789695.n4.nabble.com/PROBLEMS-with-In-factor-tmp-ORDERED-FACTOR-tp4631736.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> 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.
>
> ______________________________________________
> 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.



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm



More information about the R-help mailing list