tidy_comb: Tidy combine

Description Usage Arguments Value Examples

View source: R/tidycomb.R

Description

Get all combinations from a dataframe column or from a list

Usage

1
2
3
4
5
6
7
tidy_comb(data, base, ...)

## S3 method for class 'data.frame'
tidy_comb(data, base, ...)

## Default S3 method:
tidy_comb(data, base, ...)

Arguments

data

data object containing the list of words, either a list or a data.frame

base

the base word to compare with all the words

...

if data is a data.frame, the col where the words to combine are

Value

a tibble with all possible combination of elements from a list

Examples

1
2
tidy_comb(iris, "this", Species)
tidy_comb(state.name, "Paris")

ColinFay/tidystringdist documentation built on May 22, 2019, 4:28 p.m.