rel_data: Calculate Relative Data Of Normalized Rootdetection Data Set

View source: R/data_processing.R

rel_dataR Documentation

Calculate Relative Data Of Normalized Rootdetection Data Set

Description

The input must be a Normalized Rootdetection Data Set with columns Factor1, Factor2 and LengthMM present. The function calculates values of grouping variable 2 (Factor2) treatments relative to the median of grouping variable 2 (Factor2) control. Therefore for each grouping variable 1 (Factor1) the median of grouping variable 2 (Factor2) control is used to calculate relative values.

Usage

rel_data(root_norm, control = "20")

Arguments

root_norm

data.frame; normalized Rootdetection data set

control

string; name of the grouping variable 2 (Factor2) control condition

Value

data.frame; containing data for each grouping variable 1 (Factor1) and grouping variable 2 (Factor2) treatments relative to grouping variable 2 (Factor2) control

Examples

# normalize Rootdetection Output
root_norm <- norm_10mm_standard(root_output)

rel_data(root_norm)

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