Learn R Programming

BACCO (version 1.0-50)

subset_maker: Create a simple subset object

Description

Given an integer vector whose $i^\mathrm{th}$ element is the number of runs at level $i$, return a subset object in echelon form.

Usage

subset_maker(x)

Arguments

x
A vector of integers

Value

  • A list object suitable for use as a subset object

Details

In this context, x being in echelon form means that
  • xis consistent in the sense of passingis.consistent()
  • For each$i$,x[[i]] = 1:nfor some$n$.

See Also

is.consistent, is.nested, is.strict

Examples

Run this code
subset_maker(c(10,4,3))


is.nested(subset_maker(c(4,9,6))) #should be FALSE
is.nested(subset_maker(c(9,6,4))) #should be TRUE

Run the code above in your browser using DataLab