replace_na {BioNERO} | 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))