strCommonUnique: Finds the common and unique elements in a character vector.

Description Usage Arguments Value Examples

View source: R/strings.R

Description

Function takes a character string as input and find the common and unique elements. Assumes that the common element is at start of string

Usage

1
  strCommonUnique(string)

Arguments

string

Character vector

Value

list of common and unique strings

Examples

1
2
3
test <- c("Q_1", "Q_2", "Q_3")
strCommonUnique(test)$common
strCommonUnique(test)$unique

surveydata documentation built on May 19, 2017, 7:27 p.m.

Search within the surveydata package
Search all R packages, documentation and source code