Learn R Programming

fillr (version 1.0.0)

fill_value: fill missing value

Description

Returns a vector with all missing values filled with another value

Usage

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

Run this code
# NOT RUN {
fill_value(c(NA,1), 2)
# }

Run the code above in your browser using DataLab