calculate_all_light_response_parameters: A function that calculates all light response curve...

View source: R/calculate_all_light_response_parameters.R

calculate_all_light_response_parametersR Documentation

A function that calculates all light response curve parameters for multiple files.

Description

A function that calculates all light response curve parameters for all files. The directory it reads is "input_directory_licorfiles/light_response_data/". For all the files it calculates all the parameters. It returns a dataframe with all the parameters.

This makes it easy to drop files in the light response data directory and run just one line to fit all the data.

Usage

calculate_all_light_response_parameters(
  manual_check = TRUE,
  write_excel = FALSE,
  write_folder = "output_directory_licorfiles/excel_files/",
  save_plots = FALSE,
  save_path = "output_directory_licorfiles/light_response_plots/",
  name_parameters = c("date", "description", "light", "relative humidity", "CO2",
    "species", "measurement", "plant")
)

Arguments

manual_check

A boolean that regulates if the fits are checked.

write_excel

A boolean that regulates if the dataframe is written to an excel file.

write_folder

a string of the foldername for writing excel files.

save_plots

A boolean that regulates is the plots are saved.

save_path

A pathname where to save the plots if save_plots is TRUE.

name_parameters

A character vector of the parameters in the filename. Default is a list of date description, light, relative humidity, CO2, species, measurement and plant.

Value

Returns a dataframe with all the parameters.

Author(s)

Sam Loontjens

Examples

mydata <- calculate_all_light_response_parameters()


SamLoontjens/HandlingLicorFiles documentation built on Nov. 14, 2023, 6:32 a.m.