File: permutations.Rd

package info (click to toggle)
r-cran-e1071 1.7-3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,184 kB
  • sloc: cpp: 2,770; ansic: 1,022; sh: 4; makefile: 2
file content (18 lines) | stat: -rwxr-xr-x 356 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\name{permutations}
\alias{permutations}
\title{All Permutations of Integers 1:n}
\description{
  Returns a matrix containing all permutations of the integers
  \code{1:n} (one permutation per row).
}
\usage{
permutations(n)
}
\arguments{
  \item{n}{Number of element to permute.}
}
\author{Friedrich Leisch}
\examples{
permutations(3)
}
\keyword{datagen}