Displaying 2 results from an estimated 2 matches for "aovornul".
Did you mean:
aovornull
2008 Nov 26
1
S4 slot containing either aov or NULL
...ll
setClassUnion("listOrNULL", c("list", "NULL"))
setClass("c1", representation(value = "listOrNULL"))
y1 = new("c1", value = NULL)
y2 = new("c1", value = list(a = 10))
#but it won't work with aov or null
setClassUnion("aovOrNULL", c("aov", "NULL"))
setClass("c1", representation(value = "aovOrNULL"))
y1 = new("c1", value = NULL)
#trying to assign an aov object to the slot doesn't work
utils::data(npk, package="MASS")
npk.aov <- aov(yield ~ block + N*P...
2009 Mar 09
5
Help
...NULL", c("list", "NULL"))
> setClass("c1", representation(value = "listOrNULL"))
> y1 = new("c1", value = NULL)
> y2 = new("c1", value = list(a = 10))
>
> #but it won't work with aov or null
> setClassUnion("aovOrNULL", c("aov", "NULL"))
> setClass("c1", representation(value = "aovOrNULL"))
> y1 = new("c1", value = NULL)
>
> #trying to assign an aov object to the slot doesn't work
> utils::data(npk, package="MASS")
> npk.aov...