View source: R/sanitizeSampleData.R
sanitizeSampleData | R Documentation |
Drop any columns defined in denylist, and ensure character
columns
containing any duplicate values are automatically coerced to factor
.
sanitizeSampleData(object)
object |
|
DFrame
.
Here's the current column denylist:
interestingGroups
.
sampleId
.
Updated 2023-04-27.
data(RangedSummarizedExperiment, package = "AcidTest")
rse <- RangedSummarizedExperiment
## SummarizedExperiment ====
from <- sampleData(rse)
print(from)
to <- sanitizeSampleData(from)
all(vapply(to, is.factor, logical(1L)))
print(to)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.