MINI MINI MANI MO
%
% Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
%
\name{nth}
\alias{first}
\alias{last}
\alias{nth}
\title{Get the First, Last or nth Value from an Ordered \code{ore.vector} Object}
\usage{
nth(x, n, order_by = NULL, default = NULL)
first(x, order_by = NULL, default = NULL)
last(x, order_by = NULL, default = NULL)
}
\arguments{
\item{x}{An ordered \code{ore.vector} object.}
\item{n}{An integer specifying the position of a value in the order.}
\item{order_by}{An \code{ore.vector} or column used to determine the order.}
\item{default}{not used.}
}
\value{
A scalar \code{ore.number}, \code{ore.character}, or \code{ore.factor} value.
}
\description{
Obtains the value at the specified position in the order.
}
\examples{
X <- ore.push(1:10)
Y <- ore.push(10:1)
nth(X, 2)
nth(X, 2, Y)
last(X)
last(X, order_by = Y)
}
OHA YOOOO