search for: __c__buzz

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

2011 Feb 22
1
S3 classes and building a package
Hi List! Suppose I have the following, please: > setClass("buzz",representation(x="numeric"),S3methods=TRUE) [1] "buzz" > x <- rnorm(10) > class(x) <- "buzz" > plot.buzz <- function(x,y,...) { + plot.default(x,type="l",col="blue") + } > f <- function(x) { + return(x^2) + } >