CalcSpeed: A function that calculates the required time to a desired...

calcSpeedR Documentation

A function that calculates the required time to a desired fraction in cumulative curves and respective rate.

Description

This function allows you to calculate the time to a desired cumulative fraction and respective germination rate. Use this function on raw data to avoid loss of points closer to the desired cumulative fraction.

Usage

calcSpeed(
  data,
  treatments = c("TrtID"),
  f = 0.5,
  cum.time = "CumTime",
  cum.frac = "CumFraction"
)

Arguments

data

time course and cumulative dataset. Several treatments can be used at once as long as it respects the template and column names provided. A column with time in hours (CumTime) + a column with cumulative fractions (CumFraction) are required with at least one additional column for relevant treatment (e.g., germination temperature or water potential)

treatments

are the names of the treatment columns to separate the dataset. The time course cumulative curves will be grouped for each distinct treatment that should be informed here. These column names do not need to be informed in case the provided template file is used to organize the data.

f

A single value or vector of values from 0 to 1 used to calculate the time required for that level to be obtained in the cumulative time course. Default value is 0.5 (50 percent), to calculate the time to 50 percent germination (T50) and respective germination rate (GR50).

cum.time

is the column name in the dataset for cumulative time elapsed during the germination trial.

cum.frac

is the column name in the data for cumulative fraction germinated.

Value

A dataframe with germination speed and germination rate calculated from specified treatment columns.

Examples

"foo"

pedrobello/pbtm documentation built on May 17, 2022, 3:37 a.m.