na_to_value: Function to convert all NAs in a vector to a specified value

Description Usage Arguments Value Examples

View source: R/na_to_value.R

Description

Function to convert all NAs in a vector to a specified value

Usage

1
na_to_value(vec, val = "")

Arguments

vec

vector that potentially has NAs

val

value to replace NAs with

Value

vector with no NAs

Examples

1
na_to_value(c(1:5, NA, 7:10), 6)

srvanderplas/nppd documentation built on May 30, 2019, 8:42 a.m.