naToZero: Replace NA with 0 in a vector

Description Usage Arguments Value Examples

View source: R/valuefunctions.R

Description

This function replaces all NA's in a vector with 0

Usage

1

Arguments

x

the vector to replace all NA in

Value

a new vector with all NA's replaced by 0

Examples

1
naToZero(c(NA, 3:5, NA, NA, 4, 4, 10, NA))

DoktorMike/datools documentation built on Feb. 28, 2021, 8:39 a.m.