search for: lmoutput

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

2012 Dec 12
1
Lost in S4 and S3 classes
...Version: R version 2.15.2 (2012-10-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 A...