R/reflect.R

Defines functions reflect

Documented in reflect

#' Matrix reversal by row
#'
#' Reverse row order of matrix for correctly oriented raster plots.
#' @param mat a matrix to be reflected around horizontal axis
#' @return A matrix
#' @export
reflect = function(mat) {
  mat[nrow(mat):1,]
}
gunpowder78/pathtrackr documentation built on May 28, 2019, 8:54 p.m.