recode_helper {mde}R 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


[Package mde version 0.3.2 Index]