Description Usage Arguments Value See Also Examples
This function powers [pull()] and various functions of the tidyr package. It is similar to [vars_select()] but returns only one column name and has slightly different semantics: it allows negative numbers to select columns from the end.
1 |
var |
A variable specified as: * a literal variable name * a positive integer, giving the position counting from the left * a negative integer, giving the position counting from the right. The default returns the last column (on the assumption that's the column you've created most recently). This argument is taken by expression and supports [quasiquotation][rlang::quasiquotation] (you can unquote column names and column positions). |
The selected column name as an unnamed string.
[pull()], [vars_select()]
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.