table_factors: Table of distinct factors (sample annotation)

View source: R/AnalysisConfiguration.R View source: R/AnalysisConfiguration.R

table_factorsR Documentation

Table of distinct factors (sample annotation)

Description

Table of distinct factors (sample annotation)

Table of distinct factors (sample annotation)

Usage

table_factors(pdata, configuration)

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(), table_factors_size()

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(), table_factors_size()

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))



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 Dec. 4, 2024, 11:18 p.m.