matrix2list {noia}R Documentation

Matrix to List Transformation

Description

Turns a matrix into a list. Each column of the matrix will become an element of the list.

Usage

matrix2list(mat)

Arguments

mat A matrix, with named columns.

Value

A list named according to the names of the columns of the matrix.

Note

This function is an internal function of the package "noia", and is not designed to be used in another context.

Examples

        m <- matrix (c(1,2,3,4,5,6), ncol=2)
        colnames(m) <- c("First", "Second")
        matrix2list(m)

[Package noia version 0.93 Index]