getLabel: Extract the method label.

getLabelR Documentation

Extract the method label.

Description

Extracts the assigned label from the given lcMethod or lcModel object. By default, the label is determined from the "label" argument of the lcMethod object. The label of an lcModel object is set upon estimation by latrend() to the label of its associated lcMethod object.

Usage

## S4 method for signature 'lcMethod'
getLabel(object, ...)

## S4 method for signature 'lcModel'
getLabel(object, ...)

Arguments

object

The lcMethod or lcModel object.

...

Additional arguments.

Value

The extracted label, as character.

See Also

getName getShortName

Examples

method <- lcMethodLMKM(Y ~ Time, time = "Time")
getLabel(method) # ""

getLabel(update(method, label = "v2")) # "v2"

latrend documentation built on March 31, 2023, 5:45 p.m.