Learn R Programming

packDAMipd (version 0.2.2)

get_col_multiple_pattern: Function to get cols for the pattern given

Description

Function to get cols for the pattern given

Usage

get_col_multiple_pattern(pattern, the_data)

Value

zero or -1

Arguments

pattern

the pattern to look for

the_data

data where to look at

Examples

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

Run the code above in your browser using DataLab