idVariable: Extract the trajectory identifier variable

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
2
3
4
5
## S4 method for signature 'lcMethod'
idVariable(object, ...)

## S4 method for signature 'lcModel'
idVariable(object)

Arguments

object

The object to extract the variable from.

...

Not used.

Value

The trajectory identifier name, as character.

See Also

Other lcModel variables: responseVariable(), timeVariable()

Examples

1
2
3
4
5
method <- lcMethodKML(id = "Traj")
idVariable(method) # "Traj"

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

latrend documentation built on April 14, 2021, 5:08 p.m.