phrase: Phrase term

phraseR Documentation

Phrase term

Description

Transforms a term's value into a phrased string representation.

Usage

phrase(term, vals, lang = pal::pkg_config_val("lang"))

Arguments

term

Term to be phrased. A character scalar.

vals

Value(s) of term to be phrased. A character vector.

lang

Language. One of "de" or "en".

Value

A character scalar.

See Also

Other text phrasing functions: phrase_date(), phrase_election_candidate(), phrase_proposal_name_de()

Examples

fokus::phrase(term = "side",
              vals = c("pro", "pro", "contra"),
              lang = "de")

zdaarau/fokus documentation built on Dec. 24, 2024, 10:47 p.m.