trimColData: Minimize the number of variables in colData

Description Usage Arguments Value Examples

View source: R/simplifyColData.R

Description

This function removes variables that have a high number of missing data and contain keywords.

Usage

1
2
3
4
5
trimColData(
  multiassayexperiment,
  maxNAfrac = 0.2,
  keystring = c("portion", "analyte")
)

Arguments

multiassayexperiment

A MultiAssayExperiment object with colData

maxNAfrac

(numeric default 0.2) A decimal between 0 and 1 to indicate the amount of NA values allowed per column

keystring

(character) A vector of keywords to match and remove variables

Value

A MultiAssayExperiment object

Examples

1
2
3
4
5
example(getSubtypeMap)

(gbm_trimmed <- trimColData(gbm))

head(colData(gbm_trimmed))[1:5]

TCGAutils documentation built on April 17, 2021, 6:04 p.m.