Description Usage Arguments Details Value Examples
View source: R/select_col.R View source: R/select_col.R
A convenient selector gadget
1 | select_col(df, ...)
|
df |
The data set from which to select a column |
... |
columns to select, no quotes |
A friendly way to select a column or several columns. Mainly for non-pipe usage It is recommended to use known select functions to do pipe manipulations. Otherwise convert to tibble
Returns a dataframe with selected columns
1 2 3 4 5 6 7 8 | select_col(yields,height,weight,normal)
# A pipe friendly example
## Not run:
library(dplyr)
as_tibble(yields) %>%
select_col(height, weight, normal)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.