create_rank_col.RdCreate a rank per document id based on score.
create_rank_col(df)
create_rank_col_dplyr(df)The input data.frame df with an additional column
"rank".
create_rank_col_dplyr(): Variant with internal usage of
dplyr rather than collapse library.