1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
% $Id: fliplr.Rd 25 2022-05-30 18:46:01Z proebuck $
\name{fliplr}
\alias{fliplr}
\alias{fliplr,ANY-method}
\alias{fliplr,array-method}
\alias{fliplr,matrix-method}
\alias{fliplr,missing-method}
\alias{fliplr,vector-method}
\alias{flipud}
\alias{flipud,ANY-method}
\alias{flipud,array-method}
\alias{flipud,matrix-method}
\alias{flipud,missing-method}
\alias{flipud,vector-method}
\title{MATLAB matrix flip functions}
\description{
Flips matrices either left-right or up-down.
}
\usage{
fliplr(object)
flipud(object)
}
\arguments{
\item{object}{vector or matrix to be flipped}
}
\details{
These are S4 generic functions.
}
\value{
Return value is the same type as argument \code{object}.
}
\author{
P. Roebuck \email{proebuck1701@gmail.com}
}
\seealso{
\code{\link{rot90}}
}
\examples{
fliplr(1:9)
flipud(1:9) # same as previous since vectors have no orientation in R
fliplr(matrix(1:9, 3, 3, byrow=TRUE))
flipud(matrix(1:9, 3, 3, byrow=TRUE))
}
\keyword{array}
|