it returns a data frame with only the required columns for metabolomics and proteomics
filter_required_columns(
df,
type = c("m_m", "m_s", "v_m", "olproteins", "olsamples"),
name_id = NULL,
verbose = TRUE
)
(data.frame) metadata_metabolites
(char) Type of file to filter columns:
m_m
: metadata metabolites
m_s
: metadata samples
v_m
: proteomics vial_metadata
olproteins
: olink metadata proteins
olsamples
: olink metadata samples
(char) specify whether named
or unnamed
files
(logical) TRUE
(default) shows messages
(data.frame) filtered data frame with only the required columns
{
df_filtered <- filter_required_columns(df = metadata_metabolites_named, name_id = "named")
}
#> + (+) All required columns present