set_cols_to_na: This function sets values to NA based on column names and...

Description Usage Arguments Value

View source: R/set_to_na.R

Description

This function is useful to set unlikely values to NA.

Usage

1
set_cols_to_na(df, variables, list_indices)

Arguments

df

A data frame

variables

A character vector of the variables to work on. Ideally returned from validate::variables(validator_object)

list_indices

A list indices to set to NA.

Value

The original data frame with NAs at the right places.


b-rodrigues/brotools documentation built on April 21, 2020, 2:27 p.m.