this is from a fresh svn checkout:
[EMAIL PROTECTED] R-devel]$ ls -tl Makefile
-rw-rw-r-- 1 stvjc stvjc 12833 Jun 26 07:24 Makefile
[EMAIL PROTECTED] R-devel]$ svn up
At revision 45988.
[EMAIL PROTECTED] R-devel]$ bin/R
R version 2.8.0 Under development (unstable) (--)
Copyright (C) The R
library(MASS)
G1 = glm(sp~CW, data=crabs, fam=binomial)
G2 = do.call(glm, list(sp~CW, family=binomial, data=crabs))
G1$call is very nice to look at
G2$call is very voluminous
if we revise do.call to
function (what, args, quote = FALSE, envir = parent.frame())
{
if (!is.list(args))
this is not a problem with R but a request for related advice.
i am trying to run a lengthy batch job from my home.
the OS is ...
Linux jedi.bwh.harvard.edu 2.4.22-openmosix1smp #1 SMP Fri Sep 5 01:05:37 CEST
2003 i686 athlon i386 GNU/Linux
i start the job and put it in the background. while
Vincent Carey 525-2265 [EMAIL PROTECTED] writes:
this is not a problem with R but a request for related advice.
i am trying to run a lengthy batch job from my home.
the OS is ...
Linux jedi.bwh.harvard.edu 2.4.22-openmosix1smp #1 SMP Fri Sep 5 01:05:37
CEST
2003 i686 athlon
can list names attributes be preserved through S4
class containment? seems to be so but only if the containment
relationship is direct ... see below.
setClass(c1, contains=list)
[1] c1
l1 = list(a=1, b=2)
o1 = new(c1, l1)
names(o1) # pleasant surprise
[1] a b
setClass(c2, contains=c1)
as a fan of S4 i had a look at this; more definitive
replies are undoubtedly to come
## now: B00 mother class to B01 and B02, and again B02 contains B01 by
setIs:
setClass(B00, representation(a=numeric))
setClass(B01, representation(a=numeric,b=numeric), contains= B00)
the direct
using R 2.3 of 1/31/06
new(list)
list()
new(list, list(a=1))
$a
[1] 1
setClass(listlike, contains=list)
[1] listlike
new(listlike, list(a=1))
An object of class listlike
[[1]]
[1] 1
Why does the list in the second construction lose
the element name? A workaround is to endow the
listlike
Romain Francois suggests that a central bibliographic database
(possibly in bibtex format) might be useful for reference inclusion
in R package man pages. This has been discussed by a small
group, with one proposal presented for a package-specific bibtex database
placed in a dedicated package