get_cols: Get all column vectors of a matrix.

Description Usage Arguments Examples

View source: R/get_surround.R

Description

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

Usage

1

Arguments

data

Matrix from which to extract column vectors.

Examples

1
2
M = matrix(rnorm(9),3,3)
get_cols(M)

Example output

$`1`
[1] -0.06656627  0.98989180 -0.05984578

$`2`
[1] -0.9076369 -2.0799226 -1.1420861

$`3`
[1]  0.2071012 -0.2039597  0.0192747

BoardGames documentation built on May 2, 2019, 3:45 a.m.