
Retrieve and evaluate a lcMethod argument by name
# S4 method for lcMethod
[[(x, i, eval = TRUE, envir = NULL)
The lcMethod
object.
Name or index of the argument to retrieve.
Whether to evaluate the call argument (enabled by default).
The environment
in which to evaluate the argument. This argument is only applicable when eval = TRUE
.
The argument call
or evaluation result.
Other lcMethod functions:
as.data.frame.lcMethods()
,
as.data.frame.lcMethod()
,
as.lcMethods()
,
as.list.lcMethod()
,
evaluate.lcMethod()
,
formula.lcMethod()
,
lcMethod-class
,
update.lcMethod()
# NOT RUN {
m = lcMethodKML(nClusters = 5)
m[["nClusters"]] # 5
k = 2
m = lcMethodKML(nClusters = k)
m[["nClusters", eval=FALSE]] # k
# }
Run the code above in your browser using DataLab