Extract the argument names or number of arguments from an lcMethod object.

# S4 method for class 'lcMethod'
length(x)

# S4 method for class 'lcMethod'
names(x)

Arguments

x

The lcMethod object.

Value

The number of arguments, as scalar integer.

A character vector of argument names.

Examples

method <- lcMethodLMKM(Y ~ Time)
names(method)
#>  [1] "time"        "id"          "nClusters"   "center"      "standardize"
#>  [6] "method"      "model"       "y"           "qr"          "singular.ok"
#> [11] "contrasts"   "iter.max"    "nstart"      "algorithm"   "formula"    
length(method)
#> [1] 15