Learn R Programming

latrend (version 1.2.1)

ids: Get the trajectory ids on which the model was fitted

Description

Get the trajectory ids on which the model was fitted

Usage

ids(object)

Arguments

object

The lcModel object.

Value

A character vector or integer vector of the identifier for every fitted trajectory.

Details

The order returned by ids(object) determines the id order for any output involving id-specific values, such as in trajectoryAssignments() or postprob().

Examples

Run this code
# NOT RUN {
data(latrendData)
model = latrend(lcMethodKML("Y", id = "Id", time = "Time"), latrendData)
ids(model) # 1, 2, ..., 200
# }

Run the code above in your browser using DataLab