Separates factor columns into starting columns

separate_factors(data, config)

Arguments

data

data.frame

config

AnlalysisConfiguration

Examples

bb <- sim_lfq_data_protein_config()
#> creating sampleName from fileName column
#> completing cases
dt <- separate_factors(bb$data, bb$config)
base::setdiff(colnames(dt), colnames(bb$data))
#> [1] "group"
stopifnot(ncol(bb$data) < ncol(dt))