Description Usage Arguments Value Examples
search column names based on a regex, possibly exclude some elements based on another regex, and include some other elements (not regex but identical). For selection of columns for use in various situations
1  | 
DT | 
 a character vector. if a data.frame, uses the colnames() to extract a character vector with the colnames  | 
x | 
 a regex to search for in DT  | 
not | 
 a regex that will exclude these from argument x. Note that this uses grepl, and since grepl is not vectorized, if several elements are supplied, they are stringed together with '|' in grepl.  | 
plus | 
 a character vector with specific elements from the string that will be included. the function will trhow an error if these do not exist in the vector.  | 
ignore.case | 
 should cases be ignored? Default is TRUE  | 
This function returns a character vector that matches the regex search pattern
1 2 3 4  | ## Not run: 
colc(dupstestdata)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.