table_factors: Table of distinct factors (sample annotation)

View source: R/AnalysisConfiguration.R

table_factorsR Documentation

Table of distinct factors (sample annotation)

Description

Table of distinct factors (sample annotation)

Usage

table_factors(pdata, configuration)

Arguments

pdata

data.frame

config

AnalysisConfiguration

See Also

Other configuration: AnalysisConfiguration, AnalysisParameters, AnalysisTableAnnotation, INTERNAL_FUNCTIONS_BY_FAMILY, R6_extract_values(), complete_cases(), concrete_AnalysisConfiguration, make_interaction_column(), make_reduced_hierarchy_config(), sample_subset(), separate_factors(), separate_hierarchy(), setup_analysis(), spread_response_by_IsotopeLabel()

Examples



istar <- sim_lfq_data_peptide_config()


xx <- table_factors(istar$data,istar$config )
xx
xt <- xx |> dplyr::group_by(!!!rlang::syms(istar$config$table$factor_keys())) |>
 dplyr::summarize(n = dplyr::n())
xt
stopifnot(all(xt$n == 4))


wolski/prolfqua documentation built on May 12, 2024, 10:16 p.m.