dplyr::mutate(... dplyr::row_number(dplyr::desc(.)))add_rnk_col.RdShorthand for {dplyr} functions called consecutively.
add_rnk_col(data, col, col_out = "rnk", arrange = TRUE, pretty = TRUE)
| data | A |
|---|---|
| col | A character for the SE version; a symbol for NSE version.
The name of column in |
| col_out | Name of the new column to create, as a string or symbol. |
| arrange | If |
| pretty | If |
A tibble.
{tidyverse}Documentation for col and col_out is modified
tidyr::gather()'s documentation of key and value.
Other dplyr-cols: select_one_of