nlstimedist (version 2.0.0)

tdData: Prepare nlstimedist data

Description

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

Usage

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

Run this code
# NOT RUN {
tdData(tilia, x = "Day", y = "Trees")
tdData(lobelia, x = "Day", y = "Germination", group = "Temperature")

# }

Run the code above in your browser using DataLab