Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

columns

Rows and Columns of a Matrix


Description

Create lists from the rows and/or columns of a matrix.

Usage

columns(z)
rows(z)

Arguments

z

a matrix

Value

rows returns a list of the rows of z. If z has row names, those will also be the names of the returned list.

columns does the same, but for columns. Note that if z is some kind of time series, so too will be the elements of the returned list.


tis

Time Indexes and Time Indexed Series

v1.38
Unlimited
Authors
Jeff Hallman <jeffhallman@gmail.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.