search for: symcoca

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

2005 Oct 10
1
Documenting newly created generic versions of non-generic base R functions
Hi, Following the Writing R Extensions manual, I created a method for the cor function. As cor is not a generic, I followed the advice of section 6.1 of the same manual and did the following: cor <- function(x, ...) UseMethod("cor") cor.default <- stats::cor cor.symcoca <- function{ some code } I used package.skeleton to create the basic set-up of my package, containing the above functions. Do I need to provide a .Rd file for cor and cor.default? - seeing as cor.default is cor currently. What is the best way to handle documenting functions produced using the...
2005 Aug 03
1
deparse(substitute(x)) and S3 methods
...witch(reg.method, simpls = predcoca.simpls(y, x, R0 = weights, n.axes = n.axes, nam.dat), eigen = predcoca.eigen(y, x, R0 = weights, n.axes = n.axes, nam.dat)) } else { retval <- symcoca(y, x, n.axes = n.axes, R0 = weights, symmetric = symmetric, nam.dat) } return(retval) } My problem is with : nam.dat <- list(namY = deparse(substitute(y)), namX = deparse(substitute(x))) deparse(subsitute(x)) and deparse(subsitute(y...