df_select | R Documentation |
A wrapper around the select()
function for
selection data frame columns. Supports standard and non standard
evaluations. Usefull to easily program with dplyr
df_select(data, ..., vars = NULL)
data |
a data frame |
... |
One or more unquoted expressions (or variable names) separated by commas. Used to select a variable of interest. |
vars |
a character vector containing the variable names of interest. |
a data frame
df <- head(ToothGrowth) df # Select column using standard evaluation df %>% df_select(vars = c("dose", "len")) # Select column using non-standard evaluation df %>% df_select(dose, len)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.