fill_na.nlist: Fill Missing Values

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

View source: R/fill-na.R

Description

Fills an object's missing values while preserving the object's 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.

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 Feb. 7, 2021, 1:07 a.m.