convert_umlauts_to_ascii {fritools}R Documentation

Convert German Umlauts to a More or Less Suitable 'ascii' Representation

Description

Convert German Umlauts to a More or Less Suitable 'ascii' Representation

Usage

convert_umlauts_to_ascii(x)

## S3 method for class 'character'
convert_umlauts_to_ascii(x)

## S3 method for class 'data.frame'
convert_umlauts_to_ascii(x)

Arguments

x

A string or data.frame.

Value

x with the umlauts converted to ascii.

See Also

Other German umlaut converters: convert_umlauts_to_tex(), get_german_umlauts()

Examples

string <- paste("this is \u00e4 string")
print(string)
print(convert_umlauts_to_ascii(string))
string <- paste("this is \u00e4 string")
df <- data.frame(v1 = c(string, "foobar"),
                 v2 = c("foobar", string), v3 = 3:4)
names(df)[3] <- "y\u00dfy"
convert_umlauts_to_ascii(df)

[Package fritools version 4.3.0 Index]