has_alphabet: Test if all characters in a character vector are members of...

Description Usage Arguments Details Value

View source: R/tzara.R

Description

Test if all characters in a character vector are members of an alphabet.

Usage

1
has_alphabet(seq, alphabet)

Arguments

seq

(character) character string(s) to test

alphabet

(character with all elements of width 1)

Details

This function internally uses regular expressions, so alphabet should not begin with "^" or contain "\". "-", which commonly represents a gap, is handled correctly.

Value

TRUE if all characters in seq are also in alphabet


brendanf/tzara documentation built on March 11, 2021, 5:40 a.m.