Learn R Programming

BoardGames (version 1.0.0)

get_rows: Get all row vectors of a matrix.

Description

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

Usage

get_rows(data)

Arguments

data
Matrix from which to extract row vectors.

Examples

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

Run the code above in your browser using DataLab