str_to_ascii: Convert a String to ASCII Representation

str_to_asciiR Documentation

Convert a String to ASCII Representation

Description

str_to_ascii() converts a string to ASCII characters only. When trans = TRUE, non-ASCII characters are transliterated; otherwise, non-ASCII characters are replaced with the ASCII SUBSTITUTE CHARACTER (0x1A).

Usage

str_to_ascii(string, trans = TRUE)

Arguments

string

A character vector

trans

Should non-ASCII characters be transliterated?

Value

An ASCII-encoded character vector


jesse-smith/coviData documentation built on Jan. 14, 2023, 11:08 a.m.