fill_missing: Fill missing entries

Description Usage Arguments Value Author(s) Examples

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 (svenedmail@gmail.com)

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/SvenSFPS documentation built on May 21, 2019, 11:42 a.m.