input_na: Convert values to NA

Description Usage Arguments Details Examples

View source: R/input_na.R

Description

Convert any specified values to NA in list, column

Usage

1
input_na(x, y)

Arguments

x

your input col, needs to be in the format df$x

y

if more than 1 value, then use c(a,b,c) format

Details

A function to convert to NA in column in dataframe

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
x <- c(1,2,-9)
z <- input_na(x,-9)

## End(Not run)
## Not run: 
this can also be used for more than 1 value
x <- c(1,2,3,4,5,-9,-99)
z <- input_na(x, c(-9,-99))

## End(Not run)

svd09/Smisc documentation built on March 21, 2021, 11:11 p.m.