tdData: Prepare 'nlstimedist' data

Description Usage Arguments Value Examples

View source: R/timedist.R

Description

The data for nlstimedist needs to be in a particular format. This function prepares the data for the model.

Usage

1
tdData(data, x, y, group = NULL)

Arguments

data

A data.frame. The raw data to be cleaned.

x

character(1). The time variable.

y

character(1). The number of events.

group

character(1). The run numbers. This is NULL by default if you are only using the function for one run.

Value

A data.frame of the cleaned data to be supplied to the timedist() function.

Examples

1
2
tdData(tilia, x = "Day", y = "Trees")
tdData(lobelia, x = "Day", y = "Germination", group = "Temperature")

nlstimedist documentation built on Aug. 27, 2020, 9:07 a.m.