set.rank: Set new columns "Rank" and "Index".

Description Usage Arguments Value

Description

Set new columns "Rank" and "Index":

set.rank <==> .data$Rank = rank(.data[, .col], ties.method = 'average')

set.index <==> .data$Index = 1:nrow(.data) in a sorted data frame by .col

Usage

1
set.rank(.data, .col = "Read.count")

Arguments

.data

Data frame or list with data frames.

.col

Character vector with name of the column to use for ranking or indexing.

Value

Data frame with new column "Rank" or "Index" or list with such data frames.


imminfo/tcr documentation built on June 13, 2020, 7:01 a.m.