fillna: FillNA

View source: R/fillna.R

fillnaR Documentation

FillNA

Description

Replaces NA values in a vector with a value, 0 by default. This is really just a convinence wrapper around replace() to minimize typing.

Usage

fillna(x, fill = 0)

Arguments

x

a vector with NA values to be filled

fill

a value to replace any NA values in x. Note that if the class of fill does not match the class of x, x will be coerced to an acceptable class.

Value

a vector with length of x


crazybilly/ucbudar documentation built on July 15, 2024, 5:03 p.m.