compute_rank: Rank and order a data.frame

Description Usage Arguments Details Value

Description

Ranks a column and moves the rank column to the first column.

Usage

1
2
3
4
5
compute_rank_at(data = NULL, col_val = NULL, col_rank = "rank",
  how = c("desc", "asc"))

compute_rank(data = NULL, col_val = NULL, col_rank = "rank",
  how = c("desc", "asc"))

Arguments

data

data.frame.

col_val

character. Name of column whose values to keep for ranking.

col_rank

character. Name of rank column.

how

character. Either "desc" or "asc".

Details

Standard evaluation.

Value

data.frame.


tonyelhabr/temisc documentation built on May 26, 2019, 5:44 p.m.