spec_from_text: 'textspec' Values Based on String Prefixes

Description Usage Arguments Details Value See Also

View source: R/text_util.bare.R

Description

Return a vector of textspec values based on special prefixes in strings of x. This is an internal utility function, not intended to be called by package users.

Usage

1

Arguments

x

Character vector.

Details

Currently supported textspec values and the associated prefixes are: "plain" (no recognized prefix); "plotmath" (prefix MATH_); and "markdown" (prefix MKDN_).

The returned value will be "plain" for elements of x that are NA.

Value

Character vector with the same length as x, containing textspec values. Values are determined by looking for special prefixes in the text strings.

See Also

prefix_text to add or remove special prefixes to text strings based on textspec.


tablesgg documentation built on June 3, 2021, 1:06 a.m.