MINI MINI MANI MO
%
% Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
%
\name{ore.sort}
\alias{ore.sort}
\title{
Oracle R Enterprise 데이터 정렬
}
\description{
\code{\link[OREbase:ore.frame-class]{ore.frame}} 객체에 대한 가변적 정렬을
수행합니다.
}
\usage{
ore.sort(data, by, nls.sort = NULL, reverse = FALSE, stable = FALSE,
unique.keys = FALSE, unique.data = FALSE,
cache = getOption(".ore.persist", TRUE))
}
\arguments{
\item{data}{
\code{\link[OREbase:ore.frame-class]{ore.frame}} 객체입니다.
}
\item{by}{
\code{data} 인수에서 정렬에 사용할 열을 지정하는
콤마로 구분된 문자열입니다.
}
\item{nls.sort}{
Oracle Database \\verb{NLS_SORT}
옵션을 지정하는 문자열입니다.
}
\item{reverse}{
오름차순 또는 내림차순 정렬의 사용을 나타내는
논리 벡터입니다.
}
\item{stable}{
정렬된 그룹 내에서 상대적 순서를 유지할지 여부를
나타내는 논리 값입니다.
}
\item{unique.keys}{
정렬 열의 각 고유 조합에 대해 단일 행을 유지할지
여부를 나타내는 논리 값입니다.
}
\item{unique.data}{
\code{data} 인수에서 모든 열의 각 고유 조합에 대해
단일 행을 유지할지 여부를 나타내는 논리 값입니다.
}
\item{cache}{
내부 전용입니다.
}
}
\details{
\code{ore.sort}의 전형적인 사용 사례는 데이터 사전 처리 중
상위 k개 행을 얻는 것입니다.
}
\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.rank}}
}
\examples{
IRIS <- ore.push(iris)
# Sort all specified columns in descending order
ore.sort(data = IRIS, by = c("Petal.Length", "Sepal.Length"), reverse = TRUE)
# Sort one of the columns in ascending and another in descending order
ore.sort(data = IRIS, by = c("-Petal.Length", "Sepal.Length"))
# Retain just one row per unique value of Petal.Length
ore.sort(data = IRIS, by = "Petal.Length", unique.key = TRUE)
# Remove duplicate rows and rows with the same value for Petal.Length
ore.sort(data = IRIS, by = "Petal.Length", unique.key = TRUE,
unique.data = TRUE)
}
\keyword{manip}
OHA YOOOO