subset_fac2: Create Subsets Of Normalized Rootdetection Standard Data Set...

View source: R/helpful_functions.R

subset_fac2R Documentation

Create Subsets Of Normalized Rootdetection Standard Data Set By Factor2

Description

This function creates subsets for each grouping variable 2 (Factor2) control and treatment pair of a normalized Rootdetection data set. (At least two treatment conditions are required)

Usage

subset_fac2(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

list of data.frames; each subset will be in an separated data.frame stored in a list

Examples

# create normalized data.set with multiple Factor2
root_norm_multfac2 <- norm_cust_standard(root_output_multfac2,
  label_standard = "20mm",
  standard_length_mm = "20"
)

# create subsets for each control_treatment pair
subset_fac2(root_norm_multfac2, control = "20")

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