Skip to contents

the index of different character

Usage

diff_index(s1, s2, nth = NULL, ignore_case = FALSE)

Arguments

s1

string1

s2

string2

nth

just return nth index

ignore_case

ignore upper or lower cases

Value

list of different character indices

Examples

diff_index("AAAA", "ABBA")
#> [[1]]
#> [1] 2 3
#>