[R] problem with factor levels

PIKAL Petr petr.pikal at precheza.cz
Tue Dec 4 11:15:41 CET 2012


Hi

That is quite usual. Excel is so widespread that almost everybody assumes it shall not contain mistakes and behaves correctly. The contrary is true. Spreadsheet often guess what user have on mind and "corrects" values to fit such assumption, let aside mistakes in coded functions.

R expects it is used by clever and able people and performs just what you tell it to do, not more not less.

So whenever result does not fit your expectations, first proof your expectations.

Regards
Petr

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Jeremy.Shearman
> Sent: Tuesday, December 04, 2012 10:38 AM
> To: r-help at r-project.org
> Subject: Re: [R] problem with factor levels
> 
> Oh, your skepticism was spot on!
> I was using excel to check the output (silly, but I am still in the
> process of moving from excel to R) and there was a discrepancy in the
> number of output from R and excel. Turns out the problem was with excel
> and not with R at all. That's a relief.
> 
> SOLVED
> 
> 
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/problem-
> with-factor-levels-tp4652006p4652019.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.




More information about the R-help mailing list