Partial string matching of a provided variable to the variables available in a table

var_partial_match(x, df)

Arguments

x

a variable name or regex match to a variable name

df

a data.frame or tibble

Value

a single variable from df