search for: fancyclass

Displaying 1 result from an estimated 1 matches for "fancyclass".

Did you mean: anyclass
2004 May 21
0
Failure to preserve package attribute when coercing S4 objects (PR#6904)
...he exact identity of the class, including the package attribute. This can clearly be worked around by the introduction of dummy slots, but it took me some time to track down. > setClass("baseClass",representation(a="numeric")) [1] "baseClass" > setClass("fancyClass",contains="baseClass") [1] "fancyClass" > setClass("fancyClassExtraSlots",representation(b="numeric"),contains="baseCl ass") [1] "fancyClassExtraSlots" > > > aFP <- new("fancyClass",a=2) > aFP2 <- new(...