fill_value: fill missing value

Description Usage Arguments Value Examples

View source: R/fill_value.R

Description

Returns a vector with all missing values filled with another value

Usage

1
fill_value(x, value)

Arguments

x

vectors. All inputs should have the same length

value

a value with the same class as x

Value

vector with the same length as the first vector

Examples

1
fill_value(c(NA,1), 2)

Example output

[1] 2 1

fillr documentation built on March 26, 2020, 7:23 p.m.