Separates hierarchy columns into starting columns

separate_hierarchy(data, config)

Arguments

data

data.frame

config

AnlalysisConfiguration

Examples



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