longestConsecutive | R Documentation |
This function accepts a character vector and computes the length of the
longest substring containing only letter
for each element of x
.
longestConsecutive(seq, letter)
seq |
Character vector. |
letter |
Character vector of length 1, containing one single character. |
The elements of x
can be in upper case, lower case
or mixed. NAs are handled.
An integer vector of the same length as x
.
W. Huber
v <- c("AAACTGTGFG", "GGGAATT", "CCAAAAAAAAAATT")
longestConsecutive(v, "A")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.