longestConsecutive: (Deprecated) Obtain the length of the longest substring...

View source: R/matchprobes.R

longestConsecutiveR Documentation

(Deprecated) Obtain the length of the longest substring containing only 'letter'

Description

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

Usage

longestConsecutive(seq, letter) 

Arguments

seq

Character vector.

letter

Character vector of length 1, containing one single character.

Details

This function has been deprecated and won't be replaced.

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

## Not run: 
 v = c("AAACTGTGFG", "GGGAATT", "CCAAAAAAAAAATT")
 longestConsecutive(v, "A")

## End(Not run)

Bioconductor/Biostrings documentation built on May 3, 2024, 7:28 a.m.