MINI MINI MANI MO

Path : /opt/oracle/product/18c/dbhomeXE/R/library/OREdplyr/doc/man/en/
File Upload :
Current File : //opt/oracle/product/18c/dbhomeXE/R/library/OREdplyr/doc/man/en/ranking.Rd

%
% Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
%
\name{ranking}
\alias{cume_dist}
\alias{dense_rank}
\alias{min_rank}
\alias{ntile}
\alias{percent_rank}
\alias{ranking}
\alias{row_number}
\title{Various Ranking Functions}
\usage{
row_number(x)

ntile(x, n)

min_rank(x)

dense_rank(x)

percent_rank(x)

cume_dist(x)
}
\arguments{
\item{x}{An ordered \code{ore.number}, \code{ore.character},
or \code{ore.factor} object to rank. Missing values are left as is.}

\item{n}{The number of groups to split into.}
}
\description{
Six variations of ranking functions to rank the elements in an ordered
\code{ore.vector} by its values. An \code{ore.character} is coerced to an 
\code{ore.factor}. The values of \code{ore.factor} are based upon factor levels.
Use \code{\link{desc}} to reverse the direction.
}
\details{
\itemize{
\item \code{row_number}: Equivalent to \code{rank(ties.method = "first")}.

\item \code{min_rank}: Equivalent to \code{rank(ties.method = "min")}.

\item \code{dense_rank}: Like \code{min_rank}, but with no gaps between
  ranks.

\item \code{percent_rank}: A number between 0 and 1 computed by
  rescaling \code{min_rank} to [0, 1].

\item \code{cume_dist}: A cumulative distribution function. The proportion
  of all values that are less than or equal to the current rank.

\item \code{ntile}: A rough rank, which breaks the input vector into
  \code{n} buckets.
}
}
\examples{
X <- ore.push(c(5, 1, 3, 2, 2, NA))

row_number(X)
row_number(desc(X))

min_rank(X)

dense_rank(X)

percent_rank(X)

cume_dist(X)

ntile(X, 2)
ntile(ore.push(runif(100)), 10)
}


OHA YOOOO