inst/templates/template_compute_component.R

`compute_{{component}}.{{class}}` <- function(object, ...) {
    ## Write some code to compute the component {{component}} using
    ## the components of object and any other arguments in ...
    ## For example
    cat('component', '{{component}}', 'for objects of class', '{{class}}', "\n")
}


`compute_{{component}}` <- function(object, ...) {
    UseMethod('compute_{{component}}')
}

Try the enrichwith package in your browser

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

enrichwith documentation built on Jan. 11, 2020, 9:21 a.m.