Extracts columns relevant for a configuration from a data frame and create new columns e.g. sampleName column etc.

setup_analysis(data, configuration, cc = TRUE, from_factors = FALSE)

Arguments

data

data.frame

cc

complete cases default TRUE

config

AnlalysisConfiguration

Examples


skylineconfig <- create_config_Skyline(isotopeLabel = "Isotope.Label.Type",
 ident_qValue = "Detection.Q.Value")
skylineconfig$table$factors[["Time"]] = "Sampling.Time.Point"
sample_analysis <- setup_analysis(prolfqua_data('data_skylinePRMSample_A')$data, skylineconfig)
#> creating sampleName from fileName column
#> Warning: no nr_children column specified in the data, adding column nr_children and setting to 1.
#> completing cases