search for: anumeric

Displaying 2 results from an estimated 2 matches for "anumeric".

Did you mean: numeric
2012 Dec 12
1
Lost in S4 and S3 classes
...-26) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) I want to make an S4 class that use the output object of the function of nls.lm as a slot: setOldClass("nls.lm") setClass ( Class="TestClass", representation=representation( lmOutput = "nls.lm", anumeric = "numeric" ) ) Now, if I want to call this class in a "constructor function" I can do something like this (correct?): myConstructor <- function() { return(new("TestClass")) } pippo <- myConstructor() > pippo An object of class "TestClass&quo...
2009 Feb 11
1
setClassUnion with numeric; extending class union
...cates a problem of using setClassUnion with numeric as one of the classes): I define a class union of numeric and NULL: Unfortunately the following works only with warnings: setClassUnion("numericOrNULL", c("numeric","NULL")) So I do a workaround as: setClass("aNumeric", contains="numeric") setClassUnion("numericOrNULL", c("aNumeric","NULL")) Then I cannot really extend the above virtual class and can only use it in a user-defined slot as follows: setClass("myClass", representation(data="numericOrNULL&...