Learn R Programming

fritools (version 4.6.0)

get_german_umlauts: Get German Umlauts

Description

I often need German umlauts in reporting. So I need either a UTF-8 or LaTeX representation.

Usage

get_german_umlauts(
  which = NULL,
  type = c("utf-8", "latex"),
  strip_names = TRUE
)

Value

A (possibly named) vector of UTF-8 representations of german umlauts.

Arguments

which

A character vector specifying a subset of the result vector.

type

UTF-8 or LaTeX?

strip_names

Return an unnamed vector?

See Also

Other German umlaut converters: convert_umlauts_to_ascii(), convert_umlauts_to_tex(), convert_umlauts_to_utf8()

Examples

Run this code
get_german_umlauts()
get_german_umlauts(type = "latex")
get_german_umlauts(strip_names = FALSE)
get_german_umlauts(which = c("sz", "Ae"))
try(get_german_umlauts(which = c("sz", "foo", "Ae", "bar")))
paste0("Cologne is K", get_german_umlauts("oe"), "ln. In LaTeX it's K",
       get_german_umlauts("oe", "latex"), "ln")

Run the code above in your browser using DataLab