Table of distinct factors (sample annotation)
Source:R/tidyMS_summarize_hierarchy.R
table_factors.RdTable of distinct factors (sample annotation)
See also
Other configuration:
AnalysisConfiguration,
ContrastConfiguration,
INTERNAL_FUNCTIONS_BY_FAMILY,
R6_extract_values(),
complete_cases(),
list_to_ContrastConfiguration(),
make_interaction_column(),
make_reduced_hierarchy_config(),
sample_subset(),
separate_hierarchy(),
setup_analysis(),
table_factors_size()
Examples
istar <- sim_lfq_data_peptide_config()
#> creating sampleName from file_name column
#> completing cases
#> completing cases done
#> setup done
lfq <- LFQData$new(istar$data, istar$config)
xx <- table_factors(lfq$data_long(), lfq$file_name(), lfq$sample_name(), lfq$factor_keys())
xt <- xx |> dplyr::group_by(!!!rlang::syms(lfq$factor_keys())) |>
dplyr::summarize(n = dplyr::n())
stopifnot(all(xt$n == 4))