View source: R/calculate_LER.R
calculate_LER | R Documentation |
Calculates the leaf elongation rate (LER) for each plant in the provided dataset.
calculate_LER( leaf_length_data, n_LER_for_mean = 2, output = c("means", "tidy_LER", "wide_LER") )
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. |
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.
A tibble containing LERs. Depending on the specified output parameter, LER output varies.
Jonas Bertels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.