n_perm: Calculate the number of permutations

Description Usage Arguments Value Examples

View source: R/random_graphs.R

Description

Calcualte the number of possible permutations for a vector of length n taking k at a time

Usage

1
n_perm(n, k)

Arguments

n

length of vector

k

number of values to take at a time

Value

a numeric value or vector if input values are a vector of vectors

Examples

1
2
n_perm(10, 2)
n_perm(3, 4)

jhrcook/jhcutils documentation built on Sept. 2, 2020, 7:16 a.m.