View source: R/transformations.R
mark_qcs | R Documentation |
Loops through specified columns in pheno data and replaces all NA values with "QC". Also transforms the column to factor and sets "QC" as the last level.
mark_qcs(data, cols)
data |
a data frame such as pheno_data returned by |
cols |
the columns to fix |
a data frame with the column modified
# Remove QC labels first
pheno_data <- pData(merged_sample)
pheno_data$Group[pheno_data$Group == "QC"] <- NA
head(pheno_data$Group, 20)
pheno_data <- mark_qcs(pheno_data, cols = "Group")
head(pheno_data$Group, 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.