perm: Permutations

Description Usage Arguments Value Examples

View source: R/perm.R

Description

Retuns the number of permutaions of n things taken r at a time.

Usage

1
perm(n, r, repetition = FALSE)

Arguments

n

Total number of items.

r

Number of items drawn.

repetition

A logical, whether or not repetitions are allowed. FALSE by default.

Value

An integer giving how many ways m things can be drawn n at a time.

Examples

1
2
perm(10, 5)
perm(10, 5, repetition = TRUE)

jfq3/QsRutils documentation built on Jan. 18, 2021, 12:40 a.m.