Learn R Programming

scidb (version 1.2-0)

rank-methods: Methods for Function rank in Package scidb

Description

rank Returns the sample ranks of the values in a vector. Ties (i.e., equal values) and missing values can be handled in several ways.

Usage

"rank"(x, na.last = TRUE, ties.method = c("average", "first", "random", "max", "min"))

Arguments

x
A scidb vector object.
na.last
NOT USED--for compatability with native R functions only.
ties.method
SciDB supports average or random.

Value

scidb reference object.

Examples

Run this code
## Not run: 
# x <- scidb("build(<v:double>[i=1:10,10,0],random()
# 
# a <- order.scidb(x)
# print(a)
# ## End(Not run)

Run the code above in your browser using DataLab