Skip to contents

Match two strings of the same size and return a character vector to represent positions that match

Usage

.matchStrings(s1, s2)

Arguments

s1

String 1 to match

s2

String 2 to match

Value

A character vector with | in the index for every match between both strings.

Examples

SeedMatchR:::.matchStrings("AAAACAGTGTTCTTGCTCTATAA", "ATAACAGTCTTCTTGCTCTGTAA")
#> [1] "| |||||| |||||||||| |||"