Learn R Programming

latrend (version 1.1.0)

timeVariable: Extract the time variable

Description

Extracts the time variable (i.e., column name) from the given object.

Usage

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

# S4 method for lcModel timeVariable(object)

Arguments

object

The object to extract the variable from.

...

Additional arguments.

Value

The time variable name, as character.

See Also

Other lcModel variables: idVariable(), responseVariable()

Examples

Run this code
# NOT RUN {
method <- lcMethodKML(time = "Assessment")
timeVariable(method) # "Assessment"

data(latrendData)
model <- latrend(lcMethodKML("Y", id = "Id", time = "Time"), latrendData)
idVariable(model) # "Id"
# }

Run the code above in your browser using DataLab