sanitize_expt_pData: Adding an alias to sanitize_metadata until I decide how I...

View source: R/metadata.R

sanitize_expt_pDataR Documentation

Adding an alias to sanitize_metadata until I decide how I want to name this.

Description

Adding an alias to sanitize_metadata until I decide how I want to name this.

Usage

sanitize_expt_pData(
  expt,
  columns = NULL,
  na_value = "notapplicable",
  lower = TRUE,
  punct = TRUE,
  factorize = "heuristic",
  max_levels = NULL,
  spaces = FALSE,
  numbers = NULL,
  numeric = FALSE
)

Arguments

expt

Input expressionset.

columns

Set of columns to sanitize, otherwise all of them.

na_value

Fill in NA with this.

lower

sanitize capitalization.

punct

Remove punctuation?

factorize

Convert columns to factors? When set to 'heuristic' this tries out as.factor and sees if the number of levels is silly.

max_levels

The definition of 'silly' above.

spaces

Allow spaces in the data?

numbers

Sanitize number formats (e.g. 1.000.000,0 vs. 1,000,000.0)

numeric

Set columns to numeric when possible?


elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.