R/methods.r

risk <- function(y, ...) cat("Data extraction not defined for this class:",class(y),"\n")

setGeneric("risk", function(y, ...) standardGeneric("risk"))

extract <- function(x, ...) cat("Data extraction not defined for this class:",class(x),"\n")

setGeneric("extract", function(x, ...){
   if(isS4(x)) standardGeneric("extract") else UseMethod("extract")
}
)

Try the awsMethods package in your browser

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

awsMethods documentation built on May 8, 2019, 5:02 p.m.