groupby_rank | R Documentation |
groupby_rank( .data, ..., rankby, rankDesc = TRUE, filterIDs = NULL, removeRankCol = TRUE, doUngroup = TRUE )
.data |
data.frame/tibble |
... |
group_by fields passed to group_by |
rankby |
what column to rank by as character |
rankDesc |
descending rank? TRUE/FALSE |
filterIDs |
what rankID's to filter out. Default NULL |
removeRankCol |
Remove rank column? TRUE/FALSE. Only used if filtering |
doUngroup |
Ungroup the data? TRUE/FALSE |
Uses a dense rank to mimic Microsoft T-SQL rank
tibble
First created in 2020-12-11 while working in the MARC-KC/CovidDataEntry Repository
## Not run: groupby_rank(iris, Species, rankby = "Sepal.Length", rankDesc = TRUE, filterIDs = 1) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.