list_same_string_position: Get the same characters in two strings

View source: R/utils.R

list_same_string_positionR Documentation

Get the same characters in two strings

Description

Get the same characters in two strings

Usage

list_same_string_position(
  a,
  b,
  exclude = c("-", "?"),
  ignore_case = TRUE,
  show_excluded = FALSE,
  only_position = TRUE
)

Arguments

a, b

a string.

exclude

symbol to exclude from comparison.

ignore_case

if TRUE, ignore case.

show_excluded

if TRUE, show excluded.

only_position

if TRUE, only position vector returned.

Examples

list_same_string_position("abcde", "fbcde")
list_same_string_position("abcde", "fbcde", only_position = FALSE)

hiplot/hiplotlib documentation built on Jan. 31, 2024, 10:11 a.m.