MINI MINI MANI MO
%
% Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
%
\name{distinct}
\alias{distinct}
\alias{distinct_}
\title{Select Distinct Rows}
\usage{
distinct(.data, ...)
distinct_(.data, ..., .dots)
}
\arguments{
\item{.data}{An \code{\link[OREbase:ore.frame-class]{ore.frame}} object.}
\item{...}{Columns to determine the uniqueness.}
\item{.dots}{Used to work around non-standard evaluation. See
\code{\link[dplyr]{distinct_}} for details.}
}
\description{
Retains unique rows from an input \code{ore.frame} object over the
specified columns.
}
\examples{
df <- data.frame(
x = sample(10, 100, rep = TRUE),
y = sample(10, 100, rep = TRUE)
)
DF <- ore.push(df)
nrow(DF)
nrow(distinct(DF))
arrange(distinct(DF, x), x)
arrange(distinct(DF, y), y)
# Use distinct on computed variables
arrange(distinct(DF, diff = abs(x - y)), diff)
}
OHA YOOOO