h_df_explicit: Encode Categorical Missing Values in a 'data.frame'.

View source: R/explicit_na.R

h_df_explicitR Documentation

Encode Categorical Missing Values in a data.frame.

Description

Encode Categorical Missing Values in a data.frame.

Usage

h_df_explicit(
  df,
  omit_columns = NULL,
  char_as_factor = TRUE,
  na_level = "<Missing>"
)

Arguments

omit_columns

(character) the names of the columns to omit from processing.

char_as_factor

(logical) should character columns be converted into factor.

na_level

(string) the label to encode missing levels.

Value

a data.frame object with explicit missing levels.


dunlin documentation built on Oct. 31, 2024, 5:07 p.m.