sanitizeSampleData: Sanitize sample data

Description Usage Arguments Value Blacklist Note Examples

View source: R/sanitizeSampleData.R

Description

Sanitize sample data

Usage

1

Arguments

object

DataFrame (recommended) or data.frame (legacy). Note that legacy data.frame support will be removed in a future update.

Value

DataFrame. Sanitized data frame containing only non-blacklisted columns and all character columns coerced to factor (i.e. stringsAsFactors).

Blacklist

Here's the current column blacklist:

Note

Updated 2019-11-19.

Examples

1
2
3
4
5
6
7
8
9
data(RangedSummarizedExperiment, package = "acidtest")
rse <- RangedSummarizedExperiment

## SummarizedExperiment ====
from <- sampleData(rse)
print(from)
to <- sanitizeSampleData(from)
all(vapply(to, is.factor, logical(1L)))
print(to)

acidgenomics/basejump documentation built on Nov. 21, 2019, 1:36 a.m.