update.lcMethod | R Documentation |
Update a method specification
## S3 method for class 'lcMethod'
update(object, ..., .eval = FALSE, .remove = character(), envir = NULL)
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 |
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.
The new lcMethod
object with the additional or updated arguments.
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
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.