Description Usage Arguments Value Author(s) See Also Examples
Check if an Alphabet object has a given set of symbols. Returns true if the class of the object is "AnyAlphabet".
1 2 | ## S3 method for class 'Alphabet'
hasSymbols(this, sym, ...)
|
this |
An Alphabet object. |
sym |
A character vector. |
... |
Not used. |
TRUE or FALSE
Botond Sipos, Gregory Jordan
For more information see Alphabet
.
1 2 3 4 5 6 7 8 9 10 11 | # create alphabet object
a<-Alphabet(symbols=c("A","T","G","C"));
# check if it has the symbols "A" and "G"
hasSymbols(a,c("A","G"))
# check if has the symbol "X"
hasSymbols(a,"X")
# any alphabet returns true for every symbol
b<-AnyAlphabet();
hasSymbols(b,"X")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.