[R-sig-Debian] aggregate() example fails]

Kenneth Roy Cabrera Torres krcabrer at une.net.co
Tue Mar 24 05:23:55 CET 2009

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:
[1] "x86_64-unknown-linux-gnu"
[1] "x86_64"
[1] "linux-gnu"
[1] "x86_64, linux-gnu"
[1] "Patched"
[1] "2"
[1] "8.1"
[1] "2009"
[1] "03"
[1] "18"
$`svn rev`
[1] "48193"
[1] "R"
[1] "R version 2.8.1 Patched (2009-03-18 r48193)"

More information about the R-SIG-Debian mailing list