generate_partitions: Generate Splits Partitions Possibilities

Description Usage Arguments Value Author(s) Examples

View source: R/generate_partitions.R

Description

generate_partitions returns a matrix with the number of possible objects in each group using splits.

Usage

1
generate_partitions(p, G, use.all = TRUE)

Arguments

p

Number of variables or objects to split.

G

Number of groups into which the variables are split.

use.all

Boolean variable to determine if all variables must be used (default is TRUE).

Value

A matrix or list with the number of possible objects in each group using splits.

Author(s)

Anthony-Alexander Christidis, anthony.christidis@stat.ubc.ca

Examples

1
2
3
4
5
6
7
# Generating the possible split partitions of 6 variables in 3 groups
# Using all the variables
split.3groups.all <- generate_partitions(6, 3)
split.3groups.all
# Without using all the variables
split.3groups <- generate_partitions(6, 3, use.all=FALSE)
split.3groups

splitSelect documentation built on Nov. 9, 2021, 9:07 a.m.