Learn R Programming

phylotools (version 0.1.2)

fmatch: Find the matching index

Description

Find the matching index

Usage

fmatch(dna, pattern = "")

Arguments

dna
A character string including the DNA sequence.
pattern
A character to be used in matching the DNA sequence.

Value

The max number the input character could be matched from left to right.

Details

None.

References

Kress W., Erickson D., Jones F., Swenson N., Perez R., Sanjur O., Bermingham E., Plant DNA barcodes and community phylogeny of a tropical forest dynamics plot in Panama. Proceedings of the National Academy of Sciences of the United States of America. 2009 18621-18626

See Also

See Also edgesub for a general application of this function.

Examples

Run this code

### fmatch  example ########
dna = "---ATTGCCTTAS--TTTAAAAAACCGTTC-----"
fmatch(dna, "-")

Run the code above in your browser using DataLab