Learn R Programming

covfefe (version 1.0.0)

soundex: Calculate Soundex code

Description

American Soundex algorithm for phonetic encoding.

Usage

soundex(word)

Value

Character. 4-character Soundex code

Arguments

word

Character. Word to encode

Examples

Run this code
soundex("Robert")     # "R163"
soundex("Rupert")     # "R163" (same as Robert)
soundex("Washington") # "W252"

Run the code above in your browser using DataLab