Learn R Programming

dunlin (version 0.1.9)

h_df_explicit: 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 = ""
)

Value

a data.frame object with explicit missing levels.

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.