Learn R Programming

SemNetCleaner (version 1.0.0)

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")

# }

Run the code above in your browser using DataLab