R/transpose_list.R

Defines functions transpose_list

Documented in transpose_list

##' Transpose a List
##'
##' Transpose a matrix-like list.
##' @param x An \R list.
##' @export
##' @examples
##' l <- list( 1:3, 4:6, 7:9 )
##' stopifnot( identical(
##'   transpose_list( transpose_list(l) ), l
##' ) )
transpose_list <- function(x) {
  return( .Call(C_transpose_list, as.list(x)) )
}

Try the COMPASS package in your browser

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

COMPASS documentation built on Nov. 8, 2020, 8:05 p.m.