norm_cust_standard: Normalize Rootdetection Output According To Customized...

View source: R/data_processing.R

norm_cust_standardR Documentation

Normalize Rootdetection Output According To Customized Standard

Description

This function transforms Rootdetection output (*.csv as list) to a normalized Rootdetection data set. Compared to norm_10mm_standard function you can adjust several parameters defining the standard to obtain a normalized Rootdection data set. Therefore label_standard must match the label of your length standard measurements in the data.frame. In addition the exact mm value of the length standard must be provided.

Usage

norm_cust_standard(
  root_output,
  split = TRUE,
  label_delim = ";",
  col_label = "Label",
  col_value = "LengthPx",
  label_standard = "10mm",
  standard_length_mm = "10"
)

Arguments

root_output

data.frame; *.csv output from Rootdetection containing length standard values

split

logical; if TRUE data.frame is sorted and label is split in Factor1 and Factor2 (necessary for standard procedure)

label_delim

character; defines how Factor1 and Factor2 are separated in Label

col_label

string; name of the column that should be used as grouping variable (Label)

col_value

string; name of the column containing the measured values in pixel (depending variable) (LengthMM)

label_standard

string; defines how the length standard is labeled in col_label

standard_length_mm

numeric; defines the length (in mm) of the standard

Value

data.frame; Rootdetection data set, containing normalized length values

Examples

# use data_set with standard called '20mm' and 20 mm measured
norm_cust_standard(root_output_multfac2,
  label_delim = ";",
  col_label = "Label", col_value = "LengthPx",
  label_standard = "20mm", standard_length_mm = "20"
)

PhilippJanitza/rootdetectR documentation built on Feb. 24, 2024, 6:46 a.m.