Displaying 1 result from an estimated 1 matches for "son2".
Did you mean:
on2
2012 Mar 15
1
Extending a group of S4 classes by setClassUnion ?
Hi,
I would like to create some S4 classes as follows
setClass("Father",representation(name="character"))
setClass("Son1",contains="Father",representation(par="numeric"))
setClass("Son2",contains="Father",representation(par="logical"))
Son1<-new("Son1")
Son1 at name<-"Son1"
Son1 at par<-3
Son2<-new("Son2")
Son2 at name<-"Son2"
Son2 at par<-TRUE
setGeneric("get.par",function(object){stan...