R/Rank.R

Defines functions colRanks rowRanks Rank

Documented in colRanks Rank rowRanks

#[export]
Rank <- function(x,method = "average",descending = FALSE,stable = FALSE, parallel = FALSE) {
  .Call(Rfast_rank,x,method,descending,stable,parallel)
}

#[export]
rowRanks <- function(x,method = "average",descending = FALSE,stable = FALSE, parallel = FALSE,cores = 0) {
	if(parallel){
  		.Call(Rfast_row_ranks_p,x,method,descending,stable,cores)
	}else{
		.Call(Rfast_row_ranks,x,method,descending,stable)
	}
}

#[export]
colRanks <- function(x,method = "average",descending = FALSE,stable = FALSE,parallel = FALSE,cores = 0) {
	.Call(Rfast_col_ranks,x,method,descending,stable,parallel,cores)
}

Try the Rfast package in your browser

Any scripts or data that you put into this service are public.

Rfast documentation built on Nov. 9, 2023, 5:06 p.m.