match2: Match Based on Two Strings

Description Usage Arguments Value Examples

View source: R/tidyverse_extensions.R

Description

Match Based on Two Strings

Usage

1
match2(match1, match2)

Arguments

match1

First string

match2

Second string

Value

Indices to be used by dplyr::select etc.

Examples

1
2
3
library(dplyr)
# Select columns containing a and r
mtcars %>% select_at(vars(match2("r", "a")))

osorensen/mytools documentation built on May 3, 2019, 5:47 p.m.