Learn R Programming

biovizBase (version 1.20.0)

containLetters: Checking if string contains letters or not

Description

Test if a string contain any letters

Usage

containLetters(obj, all=FALSE)

Arguments

obj
String
all
If set to FALSE, return TRUE when any letters appears; if all is set to TRUE, return TRUE only when the string is composed of just letters.

Value

Details

Useful when processing/sorting seqnames

Examples

Run this code
containLetters("XYZ123", TRUE)

Run the code above in your browser using DataLab