q.recodeNA: Recode specified entries as NA (missing)

View source: R/q.recodeNA.R

q.recodeNAR Documentation

Recode specified entries as NA (missing)

Description

Recode specified values as missing (NA)

Usage

q.recodeNA(x, pattern=c(-77, -99, -55, -33))

Arguments

x

A data frame

pattern

A vector of numbers or character strings to be replaced with NA. Default: -77, -99, -55, -33

Value

Returns a data frame

Author(s)

Abdul Malik Sulley <asulley@uwo.ca> May 11, 2020

Examples

id <- c(1, 2, 3, 4, 5)
value <- c(25.2, 33.3, -99, 13.0, -77)
dframe <- data.frame(id, value)
q.recodeNA(x=dframe, pattern=c(-77, -99))

qwickmalik/qwickr documentation built on March 30, 2022, 2:59 p.m.