enforce_sample_value_types: convert the data type of column in a sample metadata table to...

View source: R/sample_metadata.R

enforce_sample_value_typesR Documentation

convert the data type of column in a sample metadata table to factors or numeric type

Description

importantly, columns "sample_index", "sample_id" and "shortname" are ignored alltogether

Usage

enforce_sample_value_types(
  samples,
  redundant_columns = "error",
  show_log = TRUE
)

Arguments

samples

dataset$samples or a subset thereof. Typically, only columns sample_id and user-defined regression variables are included as columns

redundant_columns

how to deal with columns in samples that are redundant with other columns. Options: "error" (default), "warning", "ignore"

show_log

boolean, show data type per column in console? Default: TRUE


ftwkoopmans/msdap documentation built on March 5, 2025, 12:15 a.m.