set_one_col_to_na: This function sets values in one column to NA.

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_one_col_to_na(df, variable, indices)

Arguments

df

A data frame

variable

A character vector of the variable to work on.

indices

An atomic vector of 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.