Description Usage Arguments Value Author(s) Examples
The function pull
selects a column in a data frame
and transforms it into a vector.
This is useful to use it in combination with magrittr's pipe operator
and dplyr's verbs.
1 2 3 4 5 6 7 8 9 10 11 12 |
.data |
A tbl. |
j |
integer. The column to be extracted. |
A vector of length nrow(.data)
Adapted from Tommy O' Dell, see http://stackoverflow.com/a/24730843/3902976 on StackOverflow.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.