Displaying 1 result from an estimated 1 matches for "abpcast2".
Did you mean:
abpcast
2004 May 21
0
Failure to preserve package attribute when coercing S4 objects (PR#6904)
...;),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 fancy class with no slots has a different
package attr...