replace_zeros: Replace 0 with NA

View source: R/as.omicsData.R

replace_zerosR Documentation

Replace 0 with NA

Description

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

Usage

replace_zeros(e_data, edata_cname)

Arguments

e_data

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.pepData, as.proData, as.lipidData, as.metabData, as.isobaricpepData, and as.nmrData functions to replace any 0 values with NAs.

Value

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


pmartR/pmartR documentation built on April 24, 2024, 10:22 p.m.