Hadoop Online Training by Edureka

longestConsecutive: Obtain the length of the longest substring containing only...

Description Usage Arguments Details Value Author(s) Examples

Description

This function accepts a character vector and computes the length of the longest substring containing only letter for each element of x.

Usage

1

Arguments

seq

Character vector.

letter

Character vector of length 1, containing one single character.

Details

The elements of x can be in upper case, lower case or mixed. NAs are handled.

Value

An integer vector of the same length as x.

Author(s)

W. Huber

Examples

1
2
 v = c("AAACTGTGFG", "GGGAATT", "CCAAAAAAAAAATT")
 longestConsecutive(v, "A")


Search within the Biostrings package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.