Learn R Programming

BoardGames (version 1.0.0)

get_cols: Get all column vectors of a matrix.

Description

This function extracts all column vectors of a matrix and returns the result as a list.

Usage

get_cols(data)

Arguments

data
Matrix from which to extract column vectors.

Examples

Run this code
M = matrix(rnorm(9),3,3)
get_cols(M)

Run the code above in your browser using DataLab