Hi Dear R-users: I am building a R package and would like to create a generic variance function. Here is how I did
var=function(x,...) { UseMethod("var") } I wrote a Rd file, put the R code in the right directory, and named var, var.default in the namespace. However, once I typed rcmd check , it gave me an error in S3-generic step. However, that error would not occur for mean and median generic functions. Any suggestion is highly appreciated. Kind regards & Many Thanks: Han [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.