Retrieve and evaluate a lcMethod argument by name
# S4 method for class 'lcMethod'
x$name
# S4 method for class 'lcMethod'
x[[i, eval = TRUE, envir = NULL]]The argument call or evaluation result.
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time", nClusters = 3)
method$nClusters # 3
#> [1] 3
m = lcMethodLMKM(Y ~ Time, id = "Id", time = "Time", nClusters = 5)
m[["nClusters"]] # 5
#> [1] 5
k = 2
m = lcMethodLMKM(Y ~ Time, id = "Id", time = "Time", nClusters = k)
m[["nClusters", eval=FALSE]] # k
#> k