grepsAbb: Sequential abbreviation mapping

Description Usage Arguments Value Author(s) Examples

View source: R/grepsAbb.R

Description

Sequentially maps abbreviations onto complete words and returns a matrix of valid possibilities.

Usage

1
grepsAbb(x, y)

Arguments

x

a character vector containing abbreviations.

y

a character vector containing whole words that could correspond to abbreviations.

Value

a matrix with total number of rows equal to the length of vector 'x'. The first column is a repeat of vector 'x'. Further columns represent matched possible 'y' vector components.

Author(s)

Atreya Shankar

Examples

1
2
3
4
5
6
7
## Not run: 

x <- c("BLG", "BLD", "LAT", "EMM")
y <- c("Boulder","Latino", "Eminem", "Emmys", "Building")
test <- demystas::grepsAbb(x, y)

## End(Not run)

pik-piam/demystas documentation built on Oct. 26, 2019, 12:15 a.m.