powered by
Get the sequential rank of observations (X) relative to previous observations (Y).
X
Y
srank(X, Y = NULL)
vector. New observations to obtain the N<U+00A1>normal scores.
vector. If Y is not defined (no previous observation available, NULL), NS is relative to X. Default NULL.
NULL
vector. Sequentil Ranks for the X observations. If ties occurs, average of the ranks are used.
# NOT RUN { X <- c(30, 35, 45) srank(X) # }
Run the code above in your browser using DataLab