get_single_col_multiple_pattern: Function to get cols for the pattern given

View source: R/help_cost_analysis_functions.R

get_single_col_multiple_patternR 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)

packDAMipd documentation built on May 29, 2024, 3:18 a.m.