recode_helper: Helper functions in package mde

View source: R/helpers.R

recode_helperR Documentation

Helper functions in package mde

Description

Helper functions in package mde

Usage

recode_helper(
  x,
  pattern_type = NULL,
  pattern = NULL,
  original_value,
  new_value,
  case_sensitive = FALSE,
  ...
)

Arguments

x

A data.frame object

pattern_type

One of contains', 'starts_with' or 'ends_with'.

pattern

A character pattern to match

original_value

Value to replace

new_value

Replacement value.

case_sensitive

Defaults to FALSE. Patterns are case insensitive if TRUE

...

Other arguments to other functions


Nelson-Gon/mde documentation built on March 23, 2022, 10:58 p.m.