R/rotate_plate.R

Defines functions rotate_plate

Documented in rotate_plate

#' rotates matrix by 180 degrees
#' 
#' If someone (no names) puts in a plate upside down, this function 
#' will rotate a plate matrix produced by \code{plate_matrix} to be
#' the correct way up. I.e if A01 is in the bottom right hand corner rather
#' than the top left.
#' 
#' @param m matrix
#' @return matrix
#' @export

rotate_plate <- function(m){
    m[nrow(m):1, ncol(m):1]
}

Try the platetools package in your browser

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

platetools documentation built on June 3, 2021, 5:06 p.m.