Displaying 1 result from an estimated 1 matches for "abpcast".
Did you mean:
abacast
2004 May 21
0
Failure to preserve package attribute when coercing S4 objects (PR#6904)
...raSlots",representation(b="numeric"),contains="baseCl
ass")
[1] "fancyClassExtraSlots"
>
>
> aFP <- new("fancyClass",a=2)
> aFP2 <- new("fancyClassExtraSlots",a=2,b=3)
>
> aBP <- new("baseClass",a=1)
> aBPcast <- as(aFP,"baseClass")
> aBPcast2 <- as(aFP2,"baseClass")
> # all the baseClass objects have the right class
> sapply(list(aBP,aBPcast,aBPcast2),class)
[1] "baseClass" "baseClass" "baseClass"
> # however the object cast from a fanc...