subsetsOfSize: Returns all subsets of a certain size

View source: R/utils.R

subsetsOfSizeR Documentation

Returns all subsets of a certain size

Description

For an input vector x, returns in a list, the collection of all subsets of x of size k.

Usage

subsetsOfSize(x, k)

Arguments

x

a vector from which to get subsets

k

the size of the subsets returned

Value

a list of all subsets of x of a given size k


SEMID documentation built on July 26, 2023, 5:40 p.m.