purge_values: Replaces unwanted values by NAs

Description Usage Arguments Value

View source: R/purge_values.R

Description

Find values in a dataframe and replace them by NAs. Also give the liste of the variables implied Beware of the factors. The variables stays as factors and the level is still in memory.

Usage

1

Arguments

base

the dataframe to clean

value

the value or vector of value to find and remove. if "space" it removes the blank thousands separator.

Value

a list with "base" as the cleaned dataset and "list_var" as the list of indexes of variables that have been changed.


CorReg documentation built on Feb. 20, 2020, 5:07 p.m.