| as.list.lcMethod {latrend} | R Documentation | 
Extract the method arguments as a list
Description
Extract the method arguments as a list
Usage
## S3 method for class 'lcMethod'
as.list(x, ..., args = names(x), eval = TRUE, expand = FALSE, envir = NULL)
Arguments
| x | The  | 
| ... | Additional arguments. | 
| args | A  | 
| eval | Whether to evaluate the arguments. | 
| expand | Whether to return all method arguments when  | 
| envir | The  | 
Value
A list with the argument calls or evaluated results depending on the value for eval.
See Also
Other lcMethod functions: 
[[,lcMethod-method,
as.data.frame.lcMethod(),
as.data.frame.lcMethods(),
as.lcMethods(),
evaluate.lcMethod(),
formula.lcMethod(),
lcMethod-class,
names,lcMethod-method,
update.lcMethod()
Examples
data(latrendData)
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
as.list(method)
as.list(method, args = c("id", "time"))
if (require("kml")) {
  method <- lcMethodKML("Y", id = "Id", time = "Time")
  as.list(method)
  # select arguments used by kml()
  as.list(method, args = kml::kml)
  # select arguments used by either kml() or parALGO()
  as.list(method, args = c(kml::kml, kml::parALGO))
}