get_single_col_multiple_pattern {packDAMipd}R Documentation

Function to get cols for the pattern given

Description

Function to get cols for the pattern given

Usage

get_single_col_multiple_pattern(pattern, the_data)

Arguments

pattern

the pattern to look for

the_data

data where to look at

Value

zero or -1

Examples

the_data <- as.data.frame(cbind(c("one", "two"), c("a", "b"), c("aa", "bb")))
colnames(the_data) <- c("name", "brand_one", "two")
get_single_col_multiple_pattern(c("brand", "trade"), the_data)

[Package packDAMipd version 1.1.0 Index]