search for: s3content

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

Did you mean: content
2005 Jan 14
1
S3/S4 classes performance comparison
...s) on my PIV 3.2 Ghz 1Go RAM, which is not acceptable. I was intending to do start properly, as starting from scratch new code. I did write everything using S4 classes. Doing a simple test reveals crucial efficiency differences between S3 and S4 classes. Here is the test: --- ### S3 CLASSES S3content <- function(obj=NULL,add1=NULL,add2=NULL,type="",...){ out <- list(content=obj,add1=add2,add2=add2,type=type) class(out) <- "S3Content" return(out) } S3vector <- function(vec,...){ out <- S3content(obj=vec,type="Vector",......