filter_required_columns: filter required columns only

View source: R/misc.R

filter_required_columnsR Documentation

filter required columns only

Description

it returns a data frame with only the required columns for metabolomics and proteomics

Usage

filter_required_columns(
  df,
  type = c("m_m", "m_s", "v_m", "olproteins", "olsamples"),
  name_id = NULL,
  verbose = TRUE
)

Arguments

df

(data.frame) metadata_metabolites

type

(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

name_id

(char) specify whether named or unnamed files

verbose

(logical) TRUE (default) shows messages

Value

(data.frame) filtered data frame with only the required columns

Examples

{
df_filtered <- filter_required_columns(df = metadata_metabolites_named, name_id = "named")
}

MoTrPAC/MotrpacBicQC documentation built on Sept. 26, 2024, 11:10 a.m.