| update.lcMethod {latrend} | R Documentation |
Update a method specification
Description
Update a method specification
Usage
## S3 method for class 'lcMethod'
update(object, ..., .eval = FALSE, .remove = character(), envir = NULL)
Arguments
object |
The |
... |
The new or updated method argument values. |
.eval |
Whether to assign the evaluated argument values to the method. By default ( |
.remove |
Names of arguments that should be removed. |
envir |
The |
Details
Updates or adds arguments to a lcMethod object. The inputs are evaluated in order to determine the presence of formula objects, which are updated accordingly.
Value
The new lcMethod object with the additional or updated arguments.
See Also
Other lcMethod functions:
[[,lcMethod-method,
as.data.frame.lcMethod(),
as.data.frame.lcMethods(),
as.lcMethods(),
as.list.lcMethod(),
evaluate.lcMethod(),
formula.lcMethod(),
lcMethod-class,
names,lcMethod-method
Examples
method <- lcMethodLMKM(Y ~ 1, nClusters = 2)
method2 <- update(method, formula = ~ . + Time)
method3 <- update(method2, nClusters = 3)
k <- 2
method4 <- update(method, nClusters = k) # nClusters: k
method5 <- update(method, nClusters = k, .eval = TRUE) # nClusters: 2