powered by
confirm data has good ranked groups
replyr_check_ranks(x, GroupColumnName, ValueColumnName, RankColumnName, ..., decreasing = FALSE, tempNameGenerator = mk_tmp_name_source("replyr_check_ranks"))
data item to work with
column to group by
column determining order
column having proposed rank (function of order)
force later arguments to bind by name
if true make order decreasing instead of increasing.
temp name generator produced by wrapr::mk_tmp_name_source, used to record dplyr::compute() effects.
summary of quality of ranking.
# NOT RUN { d <- data.frame(Sepal_Length=c(5.8,5.7),Sepal_Width=c(4.0,4.4), Species='setosa',rank=c(1,2)) replyr_check_ranks(d,'Species','Sepal_Length','rank', decreasing=TRUE) # }
Run the code above in your browser using DataLab