File: asMatrixCols.Rd

package info (click to toggle)
r-cran-bbmisc 1.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,256 kB
  • sloc: ansic: 176; sh: 9; makefile: 5
file content (29 lines) | stat: -rw-r--r-- 798 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/asMatrix.R
\name{asMatrixCols}
\alias{asMatrixCols}
\alias{asMatrixRows}
\title{Extracts a named element from a list of lists}
\usage{
asMatrixCols(xs, row.names, col.names)

asMatrixRows(xs, row.names, col.names)
}
\arguments{
\item{xs}{[\code{list}]\cr
A list of vectors of the same length.}

\item{row.names}{[\code{character} | \code{integer} | \code{NULL}]\cr
Row names of result.
Default is to take the names of the elements of \code{xs}.}

\item{col.names}{[\code{character} | \code{integer} | \code{NULL}]\cr
Column names of result.
Default is to take the names of the elements of \code{xs}.}
}
\value{
[\code{matrix}].
}
\description{
Converts a list of vectors into a matrix with vectors as columns or rows.
}