search for: representatio

Displaying 1 result from an estimated 1 matches for "representatio".

Did you mean: representation
2004 Sep 30
1
Problem with _new_ if class "lm" in object representatio n.
...do it only in some rare very special cases. The NULL exception in slot assignement will allow me object initialization using just "new" without providing a "if" polluted function initialize. > setClass("bar") [1] "bar" > setClass("foo", representation(x="numeric", y="bar")) [1] "foo" > new("foo", x=1) Error in validObject(.Object) : Invalid "foo" object: Invalid object for slot "y" in class "foo": got class "NULL", should be or extend class "bar" &gt...