File: simplifyDims.Rd

package info (click to toggle)
hmisc 4.2-0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,332 kB
  • sloc: asm: 27,116; fortran: 606; ansic: 411; xml: 160; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (6)
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
30
31
32
\name{simplifyDims}
\alias{simplifyDims}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{List Simplification}
\description{
  Takes a list where each element is a group of rows that have been
  spanned by a multirow row and combines it into one large matrix.
}
\usage{
simplifyDims(x)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{x}{list of spanned rows}
}
\details{
  All rows must have the same number of columns.  This is used to format
  the list for printing.
}
\value{
  a matrix that contains all of the spanned rows.
}
\author{Charles Dupont}
\seealso{\code{\link{rbind}}}
\examples{
a <- list(a = matrix(1:25, ncol=5), b = matrix(1:10, ncol=5), c = 1:5)

simplifyDims(a)
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{print}