transformLatrendData: Transform latrend input data into the right format

Description Usage Arguments Value

Description

This function is also responsible for checking whether the input data is valid, such that the fitting process can fail early.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
transformLatrendData(object, id, time, response, envir)

## S4 method for signature 'data.frame'
transformLatrendData(object, id, time, response, envir)

## S4 method for signature 'matrix'
transformLatrendData(object, id, time, response, envir)

## S4 method for signature 'call'
transformLatrendData(object, id, time, response, envir)

Arguments

object

The data object to transform.

id

The name of the trajectory identifier variable.

time

The name of the time variable.

response

The name of the response variable.

envir

The environment used to evaluate the data object in (e.g., in case object is of type call).

Value

A data.frame with an id, time, and measurement columns.


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