Learn R Programming

latrend (version 1.6.1)

getLabel: Object label

Description

Get the object label, if any.

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

getLabel(object, ...)

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

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

Value

A scalar character. The empty string is returned if there is no label.

Arguments

object

The object.

...

Not used.

See Also

getName

getName getShortName

Examples

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

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

Run the code above in your browser using DataLab