fill_na.nlist: Fill Missing Values

Description Usage Arguments Details Value Methods (by class) See Also Examples

View source: R/fill-na.R

Description

Fills all of an object's missing values while preserving the object's dimensionality and class.

Usage

1
2
## S3 method for class 'nlist'
fill_na(x, value = 0L, ...)

Arguments

x

An object.

value

A scalar of the value to replace values with.

...

Other arguments passed to methods.

Details

It should only be defined for objects with values of consistent class ie not standard data.frames.

Value

The modified object.

Methods (by class)

See Also

Other fill: fill_all()

Examples

1
2
fill_na(nlist(x = c(2, NA), y = matrix(c(1:3, NA), nrow = 2)))
fill_na(nlists(nlist(x = c(2, NA)), nlist(x = c(NA_real_, NA))))

nlist documentation built on Sept. 5, 2021, 6:05 p.m.