make_na: Replace special values with NA

Description Usage Arguments Value Examples

View source: R/process_data.R

Description

Replaces Understanding Society's special "missing" values with NA.

Usage

1

Arguments

df

A dataframe.

Value

The same dataframe with Understanding Society's missing values replaced with NA.

Examples

1
2
3
test_data = data.frame(a = c(532, -2), b = c(-9, 40))
clean_data = make_na(test_data)
clean_data

ch-williamson/rundsoc documentation built on Dec. 19, 2021, 2:59 p.m.