replace_nas: Replace NA with 0

View source: R/as.omicsData.R

replace_nasR Documentation

Replace NA with 0

Description

This function finds all instances of NA in e_data and replaces them with 0.

Usage

replace_nas(edata, edata_cname)

Arguments

edata

A p \times n + 1 data frame of expression data, where p is the number of xxx observed and n is the number of samples.

edata_cname

A character string specifying the name of the ID column in the e_data data frame.

Details

This function is used in the as.seqData functions to replace any NA values with 0s.

Value

An updated e_data data frame where all instances of NA have been replaced with 0.


pmartR/pmartRqc documentation built on April 25, 2024, 6:18 a.m.