Rev 15163 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{Comparison}\alias{<}\alias{<=}\alias{==}\alias{!=}\alias{>=}\alias{>}\alias{Comparison}\title{Relational Operators}\description{Binary operators which allow the comparison of values in vectors.}\usage{x < yx > yx <= yx >= yx == yx != y}\value{A vector of logicals indicating the result of the element by elementcomparison. The elements of shorter vectors are recycled asnecessary.Objects such as arrays or time-series can be compared this wayprovided they are conformable.}\note{Don't use \code{==} and \code{!=} for tests, such as in \code{if}expressions, where you must get a single \code{TRUE} or\code{FALSE}. Unless you are absolutely sure that nothing unusualcan happen, you should use the \code{\link{identical}} functioninstead.}\examples{x <- rnorm(20)x < 1x[x > 0]}\keyword{logic}