replaceNull: Replace Null values with new value

Description Usage Arguments Details Value Author(s)

View source: R/replaceNull.R

Description

Recieve an array and replaces the "nulls" elements of it by a replacement.

Usage

1
replaceNull(x,replacement,...)

Arguments

x

array. Don't use List nor Dataframes.

replacement

value or array to replace nulls.

...

array of "nulls". It takes NA, Inf, -Inf, NULL and NaN as "nulls" by default.

Details

If replacement is an array with length L shorter than x's length, the funciton would replace the null on the position K*L+i of x, by replacement's i-element. This means the function would go through both arrays at same, repeating the replacement till the end

Value

Returns an array with nulls replaced.

Author(s)

Daniel Fischer


danielfm123/dftools documentation built on July 17, 2021, 1 p.m.