fill_A_NA_with_B: fill NA in vector A with values from vector B

View source: R/lib_vector.R

fill_A_NA_with_BR Documentation

fill NA in vector A with values from vector B

Description

fill NA in vector A with values from vector B

Usage

fill_A_NA_with_B(a, b)

Arguments

a

vector containing NA to replace

b

vector containing substitute values, must be same length as a

Value

improved vector a

Examples

a = c(1,NA,3,NA)
b = 1:4
fill_A_NA_with_B(a,b) 

jorritvm/jrutils documentation built on Feb. 14, 2023, 11:33 p.m.