Message-ID: <OF8193F130.AC46334C-ONC1257944.004E2860-C1257944.004EBA65@precheza.cz>
Date: 2011-11-10T14:19:15Z
From: PIKAL Petr
Subject: Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 4L, : max not meaningful for factors
In-Reply-To: <1320923562130-4023231.post@n4.nabble.com>
Hi
>
> Thanks Duncan.
>
> This is a package, SIAR.
>
> > fo <- ordered(f)
> > fo
> [1] a b c d e
> Levels: a < b < c < d < e
> > max(fo)
> [1] e
> Levels: a < b < c < d < e
>
> The data set has 101 values, what can I use instead of letters?
Why do you need to use letters? AFAIK this was only illustration what
could be root of the error message. If the function requires ordered
factor you can use
your.ordered.factor <- ordered(your.unordered.factor)
I do not remember original mail but to get rid of error message, the
function probably needs as an input ordered factor or numeric values. You
shall consult help page for this function which option is valid.
Regards
Petr
>
>
> Best wishes,
>
> Alex.
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Error-in-
>
Summary-factor-c-1L-1L-1L-1L-1L-1L-1L-1L-1L-1L-4L-max-not-meaningful-for-
> factors-tp4022502p4023231.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.