Learn R Programming

SemNetCleaner (version 1.1.5)

starting.letter: Starting Letter

Description

A wrapper function designed to produce the first letter that appears in a word, regardless of leading characters

Usage

starting.letter(word)

Arguments

word

Character. A single word

Value

First letter in the string

Examples

Run this code
# NOT RUN {
# First letter is "w"
starting.letter("..walrus")

# First letter is "r"
starting.letter("5rat")

# First letter is "b"
starting.letter("%1.,bombay")

# }

Run the code above in your browser using DataLab