Learn R Programming

FastUtils (version 0.2.1)

startsWithVowel: Check if a String Starts with a Vowel

Description

This function checks if a string starts with a vowel.

Usage

startsWithVowel(x)

Value

TRUE if the string starts with a vowel, FALSE otherwise.

Arguments

x

A character string.

Examples

Run this code
# Check if "apple" starts with a vowel
startsWithVowel("apple")
# Check if "banana" starts with a vowel
startsWithVowel("banana")

Run the code above in your browser using DataLab