Learn R Programming

LSAfun (version 0.6.2)

breakdown: Clean up special characters

Description

Replaces special characters in character vectors

Usage

breakdown(x)

Arguments

x

a character vector

Value

A character vector

Details

Applies the following functions to a character vector

  • sets all letters to lower case

  • replaces umlauts (for example <e4> replaced by ae)

  • removes accents from letters (for example <e9> replaced by e)

  • replaces <df> by ss

    Also removes other special characters, like punctuation signs, numbers and breaks

See Also

gsub

Examples

Run this code
# NOT RUN {
breakdown("M<e4>rchen")

breakdown("I was visiting Orl<e9>ans last week. 
           It was nice, though!")
# }

Run the code above in your browser using DataLab