rankit: Compute uniform observation based on ranks

Description Usage Arguments See Also Examples

Description

Returns uniform observations in [0,1] based on ranks with preservation of the NA values. Denominator is n+1, where n is the sample size.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
rankit(x, ...)

## S3 method for class 'numeric'
rankit(x, na.last = "keep", ...)

## S3 method for class 'matrix'
rankit(x, ...)

## S3 method for class 'list'
rankit(x, ...)

Arguments

x

Can be a vector, matrix or list containing data to transform. If it is a matrix 'rankit' is applied to the columns

...

Additional parameters past to the function 'rank'. By default, last.na = 'keep'.

See Also

rank

Examples

1
2
3
4
x <- replicate(2,rnorm(10))
y <- rnorm(10)
x; rankit(x)
y; rankit(y)

martindurocher/floodRFA documentation built on June 5, 2019, 8:44 p.m.