fill_missing: Fill missing entries

Description Usage Arguments Value Author(s) Examples

View source: R/fill_missing.R

Description

fill_missing takes in two atomic vectors or lists, x and with, and returns x with the values of with in the cases where x is NA or an empty string.

Usage

1

Arguments

x, with

atomic vectors or lists

Value

a modified version of x

Author(s)

Sven Halvorson ([email protected])

Examples

1
2
3
4
5
6
7
one = c(1:3,NA,4:6,NA)
two = -8:-1
fill_missing(one,two)

three = c(letters[1:3],NA,"","SILLY PEANUT BUTTAH","")
four = 1:7
fill_missing(three, four)

svenhalvorson/SvenR documentation built on June 24, 2018, 9:25 a.m.