Laurence Kell FM CEFAS <[EMAIL PROTECTED]> asked about
> setClass("LUdecomposition", representation(a="matrix", pivot = "integer"),
> prototype=list(pivot = NA) )
>
> then I get the following error message in R 1.7.1 but not R 1.7.0
>
> Error in makePrototypeFromClassDef(properties, ClassDef, immediate) :
> In making the prototype for class "LUdecomposition" elements of the
> prototype
> failed to match the corresponding slot class: pivot (class " integer
> ")
>
> Why can I no longer use the prototype to set the default values?
The prototype says 'pivot = "integer"'.
Had you noticed in the R language PDf file that typeof(NA) = "logical"?
What happens when you try
prototype=list(pivot=as.integer(NA))
instead?
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help