naToZero: Replace numeric NAs with 0

View source: R/utils-numeric.R

naToZeroR Documentation

Replace numeric NAs with 0

Description

This function replaces numeric NAs with 0.

Usage

naToZero(x, ...)

Arguments

x

list, data.frame, array, or vector

cols

Optional. When appropriate, vector of column names for which the NA replacement should occur. Default is all numeric columns.

Value

object the same type as x, where desired NAs are replaced with 0.


VEuPathDB/veupathUtils documentation built on Feb. 8, 2025, 12:29 p.m.