##' 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)) )
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.