[R-sig-Debian] aggregate() example fails]
mar36 at psu.edu
Tue Mar 24 14:39:03 CET 2009
example(aggregate) works fine on the amd64 ubuntu packages on CRAN. You
are running a slightly newer version (an alpha or beta, I think), which
may be a problem. If I get a chance in the next couple of days, I will
try the new beta to see if example(aggregate) still works. My
suggestion would be to use the packages on CRAN. Is there are reason
why those are not sufficient?
Kenneth Roy Cabrera Torres wrote:
> Hi R users and developers on debian platforms.
> I compile the R version 2.8.1 Patched (2009-03-18 r48193)
> on my UBUNTU linux distribution.
> But when I ask for the aggregate example it fails.
> What am I missing?
> aggrgt> ## Compute the averages for the variables in 'state.x77',grouped
> aggrgt> ## according to the region (Northeast, South, North Central,West) that
> aggrgt> ## each state belongs to.
> aggrgt> aggregate(state.x77, list(Region = state.region), mean)
> Error en FUN(X[[1L]], ...) :
> elemento 1 esta vacio;
> la parte de la lista de argumentos 'is.list' ha sido evaluada: (INDEX)
> I discovery this behavior when I try to use old scripts that uses
> the aggregate() function, but now it fails on my old scripts.
> Thank you for your help.
> PD: R.Version() returns:
>  "x86_64-unknown-linux-gnu"
>  "x86_64"
>  "linux-gnu"
>  "x86_64, linux-gnu"
>  "Patched"
>  "2"
>  "8.1"
>  "2009"
>  "03"
>  "18"
> $`svn rev`
>  "48193"
>  "R"
>  "R version 2.8.1 Patched (2009-03-18 r48193)"
> R-SIG-Debian mailing list
> R-SIG-Debian at r-project.org
Dr. Michael A. Rutter
School of Science
Penn State Erie, The Behrend College
Erie, PA 16563
More information about the R-SIG-Debian