From jh910 at juno.com  Tue Feb 14 03:39:41 2006
From: jh910 at juno.com (J. Hosking)
Date: Mon, 13 Feb 2006 21:39:41 -0500
Subject: [Rd] addmargins
Message-ID: <dsrftd$9t$1@sea.gmane.org>

 > 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



[Rd] addmargins
J. Hosking