View source: R/data_preprocess.R
replace_na | R Documentation |
Remove missing values in a gene expression data frame
replace_na(exp, replaceby = 0)
exp |
A gene expression data frame with genes in row names and samples in column names or a 'SummarizedExperiment' object. |
replaceby |
What to use instead of NAs. One of 0 or 'mean'. Default is 0. |
Gene expression data frame or 'SummarizedExperiment' object with all NAs replaced according to the argument 'replaceby'.
Fabricio Almeida-Silva
data(zma.se)
exp <- replace_na(zma.se)
sum(is.na(exp))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.