View source: R/tab_measuredvalues_missingvalues.R
samplesMeasuredMissing | R Documentation |
samplesMeasuredMissing
returns a tbl
with
the number of measured/missing
features of samples. The function will take as input a
SummarizedExperiment
object and will access its assay()
slot
samplesMeasuredMissing(se)
se |
|
tbl
with number of measured/missing features per sample
## create se
a <- matrix(seq_len(100), nrow = 10, ncol = 10,
dimnames = list(seq_len(10), paste("sample", seq_len(10))))
a[c(1, 5, 8), seq_len(5)] <- NA
set.seed(1)
a <- a + rnorm(100)
sample <- data.frame(name = colnames(a), type = c(rep("1", 5), rep("2", 5)))
featData <- data.frame(spectra = rownames(a))
se <- SummarizedExperiment::SummarizedExperiment(assay = a,
rowData = featData, colData = sample)
## create the data.frame with information on number of measured/missing
## values
samplesMeasuredMissing(se)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.