R/006.fixVarArgs.R

Defines functions colMeans colSums

Documented in colMeans colSums

# Added '...' to some base functions. These will later be
# turned into default functions by setMethodS3().

# USED TO DO: colSums <- appendVarArgs(colSums)
colSums <- function(...) UseMethod("colSums")
setMethodS3("colSums", "default", function(...) {
  base::colSums(...)
})

# USED TO DO: colMeans <- appendVarArgs(colMeans)
colMeans <- function(...) UseMethod("colMeans")
setMethodS3("colMeans", "default", function(...) {
  base::colMeans(...)
})

write <- appendVarArgs(write)

Try the aroma.core package in your browser

Any scripts or data that you put into this service are public.

aroma.core documentation built on June 25, 2024, 1:15 a.m.