R/r.R

Defines functions r

#' Rotate a matrix counter clockwise
#' @title Rotate a matrix
#' @description  Rotate a matrix 90 degrees counter clockwise
#' @param mat a matrix
#' @usage r(mat)
#' @return Rotated matrix
#' @author Bruno Silva
#' @keywords internal
#' @noRd

r <- function(mat) apply(mat, 1, rev)

Try the soundClass package in your browser

Any scripts or data that you put into this service are public.

soundClass documentation built on May 30, 2022, 1:07 a.m.