sharedSubString: sharedSubString

Description Usage Arguments Value Author(s) Examples

View source: R/sharedSubString.R

Description

A function to find the longest shared substring in a character vector.

Usage

1

Arguments

x

The character vector to process.

y

Optionally, two single values can be specified. This is probably not useful to end users, but it's used by the function when it calls itself.

Value

A vector of length one with either the longest substring that occurs in all values of the character vector, or NA if no overlap an be found.

Author(s)

Gjalt-Jorn Peters

Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>

Examples

1
2
  sharedSubString(c("t0_responseTime", "t1_responseTime", "t2_responseTime"));
  ### Returns "_responseTime"

userfriendlyscience documentation built on May 2, 2019, 1:09 p.m.