| [[,lcMethod-method | R Documentation |
Retrieve and evaluate a lcMethod argument by name
## S4 method for signature 'lcMethod'
x$name
## S4 method for signature 'lcMethod'
x[[i, eval = TRUE, envir = NULL]]
x |
The |
name |
The argument name, as |
i |
Name or index of the argument to retrieve. |
eval |
Whether to evaluate the call argument (enabled by default). |
envir |
The |
The argument call or evaluation result.
Other lcMethod functions:
as.data.frame.lcMethod(),
as.data.frame.lcMethods(),
as.lcMethods(),
as.list.lcMethod(),
evaluate.lcMethod(),
formula.lcMethod(),
lcMethod-class,
names,lcMethod-method,
update.lcMethod()
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time", nClusters = 3)
method$nClusters # 3
m = lcMethodLMKM(Y ~ Time, id = "Id", time = "Time", nClusters = 5)
m[["nClusters"]] # 5
k = 2
m = lcMethodLMKM(Y ~ Time, id = "Id", time = "Time", nClusters = k)
m[["nClusters", eval=FALSE]] # k
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.