Learn R Programming

CorReg (version 1.2.17)

purge_values: Replaces unwanted values by NAs

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

purge_values(base, value)

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.