clean_text: Clean free-form text

View source: R/data-item-cleaning.R

clean_textR Documentation

Clean free-form text

Description

Clean free-form text

Usage

clean_text(text, keep_unknown = FALSE)

Arguments

text

A character vector of free text values.

keep_unknown

Replace values for "unknown" with NA?

Value

An character vector with leading and trailing whitespace removed. If keep_unknown is FALSE, blank values are replaced with NA.


naaccr documentation built on Sept. 20, 2024, 5:07 p.m.