compute var sd etc for all factor levels

summarize_stats_factors(pdata, config)

Examples

# example code
res2 <- prolfqua::sim_lfq_data_2Factor_config()
#> creating sampleName from fileName column
#> completing cases
xx <- summarize_stats_factors(res2$data, res2$config)
#> [1] "Treatment"  "Background"
#> completing cases
#> [1] "Treatment"
#> completing cases
#> [1] "Background"
#> completing cases
stopifnot(nrow(xx) == 80)
stopifnot( length(unique(xx$interaction)) == (2 + 2 + 2 * 2))