Displaying 1 result from an estimated 1 matches for "formulaornull".
2006 Jan 19
2
creating objects with a slot of class formula, using new
Hi,
This works fine.
>setClass("a",representation(b="list",c="list"))
>new("a",b=list(7))
>An object of class "a"
Slot "b":
[[1]]
[1] 7
Slot "c":
list()
But, now suppose you want a slot to accept an object of class formula...
>setClass("a",representation(b="list",c="formula"))