[Rd] addmargins

From: J. Hosking <jh910_at_juno.com>
Date: Tue 14 Feb 2006 - 02:39:41 GMT


> addmargins(UCBAdmissions, FUN = list(Total=sum))

works with no problems, but consider:

> myFUN <- list(Total=sum)
> addmargins(UCBAdmissions, FUN = myFUN)
Error in "names<-.default"(`*tmp*`, value = "") :

         names() applied to a non-vector

Is this a bug?

> R.version

          _
platform i386-pc-mingw32

arch     i386
os       mingw32

system i386, mingw32
status
major 2
minor 2.1
year 2005
month 12
day 20
svn rev 36812
language R

J. R. M. Hosking



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Feb 14 13:49:04 2006

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:41 GMT