Description Usage Arguments Details Examples
Select a single column from a table and return as a vector. This is pretty-much just a wrapper for '[[', but is more descriptive and pipe friendly.
1 2 3 | select_col(.data, col, nm = NULL)
select_col_(.data, col, nm = NULL)
|
.data |
A data frame |
col |
In |
nm |
If non- |
If the nm
argument is used, then this
can be seen as the inverse of enframe
.
1 2 | select_col(iris, Species)
select_col_(iris, "Species")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.