MINI MINI MANI MO
%
% Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
%
\name{ore.rank}
\alias{ore.rank}
\title{
Oracle R Enterprise 데이터 순위 지정
}
\description{
\code{\link[OREbase:ore.frame-class]{ore.frame}} 객체의 숫자 열을 따라 값의 분포를 조사합니다.
주요 특징은 다음과 같습니다.
그룹 내의 순위 지정 허용,
순위 바둑판식 나열에 따라 관찰을 그룹으로 분할,
바둑판식 나열의 취급 옵션 제공,
누적 백분율 및 백분위수 계산,
순위에서 정상 점수 계산.
}
\usage{
ore.rank(data, var, desc = FALSE, groups = NULL, group.by = NULL,
ties = c("mean", "high", "low", "dense",
"condense"),
score = c("none", "fraction", "nplus1", "blom", "tukey",
"vw", "percent", "savage",
"waerden", "fn1", "n1"),
fraction = FALSE, percent = FALSE, nplus1 = FALSE,
savage = FALSE, blom = FALSE, tukey = FALSE, vw = FALSE)
}
\arguments{
\item{data}{
\code{\link[OREbase:ore.frame-class]{ore.frame}} 객체입니다.
}
\item{var}{
\code{data} 인수 안에 숫자 열의 이름을 지정하는 콤마로 구분된
문자열입니다.
}
\item{desc}{
오름차순 또는 내림차순으로 순위를 지정할지 여부를 나타내는
논리 값입니다.
}
\item{groups}{
데이터의 분할 영역 수를 지정하는 선택적 숫자 값입니다.
백분위수의 경우 \code{groups = 100}을(를) 지정합니다.
십분위수의 경우 \code{groups = 10}을(를) 지정합니다.
사분위수의 경우 \code{groups = 4}을(를) 지정합니다.
}
\item{group.by}{
\code{data} 인수 안에 group by 열 이름을 지정하는
선택적 문자 벡터입니다.
}
\item{ties}{
바둑판식 나열의 처리 방법을 지정하는 문자열입니다.
\code{"low"}(연계 그룹 내의 최소 순위),
\code{"high"}(연계 그룹 내의 최대 순위),
\code{"mean"}(연계 그룹 내의 평균 순위),
\code{"dense"}/\code{"condense"}(연계 그룹 내의 임의의 고유 순위) 중 하나입니다.
}
\item{score}{
점수를 지정하는 문자열입니다. 다음 중 하나입니다.
\code{"none"}, \code{"fraction"}, \code{"nplus1"}, \code{"blom"},
\code{"tukey"}, \code{"vw"}, \code{"percent"}, 또는 \code{"savage"},
\code{"waerden"}, \code{"fn1"} 또는 \code{"n1"}.
}
\item{fraction}{
\code{var} 인수에서 각 열에 대한
\\samp{rank/#non-missing values} 비율을
계산할지 여부를 나타내는 논리 값입니다.
}
\item{percent}{
\code{var} 인수에서 각 열에 대한
\\samp{(rank * 100)/#non-missing values} 비율을
계산할지 여부를 나타내는 논리 값입니다.
}
\item{nplus1}{
\code{var} 인수에서 각 열에 대한
\\samp{rank/(#non-missing values + 1)} 비율을
계산할지 여부를 나타내는 논리 값입니다.
}
\item{savage}{
\code{score = "savage"}에 상응합니다.
}
\item{blom}{
\code{score = "blom"}에 상응합니다.
}
\item{tukey}{
\code{score = "tukey"}에 상응합니다.
}
\item{vw}{
\code{score = "vw"}에 상응합니다.
}
}
\value{
\code{\link[OREbase:ore.frame-class]{ore.frame}} 객체를 반환합니다.
}
\references{
\href{http://www.oracle.com/technetwork/database/database-technologies/r/r-enterprise/documentation/index.html}{Oracle R Enterprise}
}
\author{
Oracle \email{oracle-r-enterprise@oracle.com}
}
\seealso{
\code{\link{ore.sort}}
}
\examples{
IRIS <- ore.push(iris)
# Rank 2 columns with column aliases and sort them in descending rank order
ore.rank(data = IRIS,
var = "Petal.Length=Col1Rank, Sepal.Length=Col2Rank",
desc = TRUE)
# Handling of ties
ore.rank(data = IRIS,
var = "Petal.Length=PetalLengthRanks, Sepal.Length=SepalRanks",
ties = "low")
# Rank within each Species group
ore.rank(data = IRIS,
var = "Petal.Length=PetalLengthRanks, Sepal.Length=SepalRanks",
group.by = "Species")
# Partition rows into 10 groups to get deciles
ore.rank(data = IRIS,
var = "Petal.Length=PetalLengthRanks, Sepal.Length=SepalRanks",
groups = 10)
# Estimate the cumulative distribution function
ore.rank(data = IRIS,
var = "Petal.Length=PetalLengthRanks, Sepal.Length=SepalRanks",
nplus1 = TRUE)
# Calculate scores
ore.rank(data = IRIS,
var = "Petal.Length=PetalLengthRanks, Sepal.Length=SepalRanks",
score = "savage", groups = 100, group.by = "Species")
}
\keyword{univar}
OHA YOOOO