Learn R Programming

madness (version 0.2.0)

reshapes: Basic Reshape Operations

Description

Basic Reshape Operations

Usage

t(x)
"t"(x)
tril(x, k = 0, ...)
"tril"(x, k = 0)
triu(x, k = 0, ...)
"triu"(x, k = 0)
"dim"(x) <- value
aperm(a, perm=NULL, resize=TRUE, ...)

Arguments

x
madness object.
k
the index of the diagonal number from which to extract.madness object.
...
Optional arguments used by specific methods. (None used at present.)
value
an array of the new dimensions of the object value.
a
the array to be transposed.
perm
the subscript permutation vector, usually a permutation of the integers 1:n, where n is the number of dimensions of a. When a has named dimnames, it can be a character vector of length n giving a permutation of those names. The default (used whenever perm has zero length) is to reverse the order of the dimensions.
resize
a flag indicating whether the vector should be resized as well as having its elements reordered (default TRUE).

See Also

vec, todiag