Create a lcMethod object from a call
Creates a lcMethod class of the specified type Class for the given arguments given in a call, along with any default arguments from reference functions.
This function is intended to be used by classes extending lcMethod to provide an easy way to construct the appropriate call object.
lcMethod.call(Class, call, defaults = list(), excludeArgs = c())
Class |
The type of lcMethod class |
call |
The arguments to create the |
defaults |
List of |
excludeArgs |
The names of the arguments to exclude from the defaults, provided as a |
An object of class Class that extends lcMethod.
data(latrendData)
lcMethodKML2 <- function(response = "Y", id = "Id", time = "Time", nClusters = 2, ...) {
lcMethod.call("lcMethodKML", call = stackoverflow::match.call.defaults(),
defaults = c(kml::kml, kml::parALGO),
excludeArgs = c("object", "nbClusters", "parAlgo", "toPlot", "saveFreq"))
}
method <- lcMethodKML2(nClusters = 3)
latrend(method, data = latrendData)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.