set_values_to_na: Set -9 and 0s to NA for given columns

View source: R/set_values_to_na.R

set_values_to_naR Documentation

Set -9 and 0s to NA for given columns

Description

Set -9 and 0s to NA for given columns

Usage

set_values_to_na(
  df,
  cols_neg9_to_na = NULL,
  cols_zeros_to_na = NULL,
  cols_neg_to_na = NULL
)

Arguments

df

A data.frame

cols_neg9_to_na

A vector of the column names for which -9 values will be set to NA

cols_zeros_to_na

A vector of the column names for which 0 will be set to NA

cols_neg_to_na

A vector of the column names for which any negative values will be set to NA

See Also

Other clean column contents functions: plot_map()


IdahoAgStats/facthelpeR documentation built on Jan. 29, 2024, 9:22 a.m.