File: aperm.listenv.Rd

package info (click to toggle)
r-cran-listenv 0.9.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 340 kB
  • sloc: sh: 14; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 933 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
38
39
40
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aperm.R
\name{aperm.listenv}
\alias{aperm.listenv}
\alias{t.listenv}
\title{Transpose a 'listenv' array by permuting its dimensions}
\usage{
\method{aperm}{listenv}(a, perm, ...)

\method{t}{listenv}(x)
}
\arguments{
\item{a, x}{(listenv) The list environment to be transposed}

\item{perm}{(integer vector) An index vector of length \code{dim(a)}}

\item{\ldots}{Additional arguments passed to \code{\link[base:aperm]{base::aperm()}}.}
}
\value{
Returns a list environment with permuted dimensions
}
\description{
Transpose a 'listenv' array by permuting its dimensions
}
\examples{
x <- as.listenv(1:6)
dim(x) <- c(2, 3)
dimnames(x) <- list(letters[1:2], LETTERS[1:3])
print(x)

x <- t(x)
print(x)

x <- aperm(x, perm = 2:1)
print(x)

}
\seealso{
These functions works like \code{\link[base:aperm]{base::aperm()}} and \code{\link[base:t]{base::t()}}.
}