replace_missing_string: Replace missing values with another string.

Description Usage Arguments Details Value

View source: R/replace_missing_string.R

Description

Given a tibble and a column, this function will find target values (by default "") and replace them with a string (by default "Missing").

Usage

1
2
3
4
5
6
7
replace_missing_string(
  this_data,
  this_var,
  this_function = NA,
  replacement_targets = "",
  replacement_value = "Missing"
)

Arguments

this_data

The tibble in which the column exists

this_var

The column name (if not a quosure, it will be made into one)

this_function

A label for error/warning messages (by default it is the name of this function).

replacement_targets

The value to be replace (default="")

replacement_value

The value to replace it with (default="Missing)

Details

Function can be repurposed to replace any target value with another string.

Value

The updated tibble


LisaHopcroft/CTutils documentation built on Oct. 7, 2021, 11:08 p.m.