Displaying 1 result from an estimated 1 matches for "simplereplaceexpr".
2007 May 21
1
list element names in S4 class extending list
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",