expand_colnames | R Documentation |
Given a data.table or data.frame and a string of column range using the ":", expand and find all columns within that range, including the columns stated as the beginning and end of the range
expand_colnames(dt, range)
dt |
a |
range |
a string defining range of columns using ":" notation |
This helper function is useful for extracting and finding the columns between the bracket of column names provided. This is useful when evaluating the columns required when other wr_ functions use non-standard evaluation.
This function is used internally in the package and not exported
## Not run: mtcars expand_colnames(mtcars, "mpg:hp") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.