string_replace: Test or Apply string replacements

View source: R/utils.R

string_replaceR Documentation

Test or Apply string replacements

Description

Apply a regular expression and return the original and the changed value, only the unique values

Usage

string_replace(Input, Var, Reg_expression, Replacement, Mode = "Test")

Arguments

Input

Input tibble

Reg_expression

Regular expression to apply to input

Replacement

String to use for replacement

Mode

Test/Apply = test will return just unique changes

Output

Variable to out result into

Value

A tibble will be returned with the:

  • Input$Var (where a change occurred)

  • Output


alankjackson/GeocodeHou documentation built on May 20, 2022, 12:03 p.m.