replace_na_range: Replace NAs randomly from a selected range with replacement

View source: R/replace_na_range.R

replace_na_rangeR Documentation

Replace NAs randomly from a selected range with replacement

Description

Replace NAs randomly from a selected range with replacement

Usage

replace_na_range(x, range)

Arguments

x

Original numeric vector containing missing values.

range

Vector specifying the valid values to replace the missing values with

Examples

replace_na_range(c(1,NA,2,3,1,NA,2),c(1,2,3)) 


martinctc/surveytools documentation built on Nov. 21, 2024, 10:48 p.m.