calculate_LER: Calculate leaf elongation rate

View source: R/calculate_LER.R

calculate_LERR Documentation

Calculate leaf elongation rate

Description

Calculates the leaf elongation rate (LER) for each plant in the provided dataset.

Usage

calculate_LER(
  leaf_length_data,
  n_LER_for_mean = 2,
  output = c("means", "tidy_LER", "wide_LER")
)

Arguments

leaf_length_data

data.frame or tibble containing the leaf length data.

n_LER_for_mean

specifies the number of calculated LERs which must be used to calculate the mean LER (default = 2).

output

specifies what the funtion should return. By default, a tibble of the calculated mean LERs is returned ("means"). When selecting "tidy_LER", a tidy tibble containing all calculated LERs will be returned. "wide_LER" will return a wide, more human readable tibble of the calculated LERs.

Details

This function takes in leaf growth data, where the first column are plant_id's and the following columns are leaf length measurements, where the column headers are in the following date-time format: yyyy/mm/dd hh:mm or yyyy/mm/dd hh:mm:ss The provided leaf growth data must be in a data.frame or tibble. By default, it uses the two first LERs for the calculation of the LER mean. This means that at least three leaf length measurements are needed, allowing a minimum of two growth intervals to be calculated.

Value

A tibble containing LERs. Depending on the specified output parameter, LER output varies.

Author(s)

Jonas Bertels


impres-lab/leafkin documentation built on Aug. 5, 2022, 5:20 a.m.