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

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 July 20, 2017, 1:04 a.m.

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