powered by
Given an integer vector whose \(i^\mathrm{th}\) element is the number of runs at level \(i\), return a subset object in echelon form.
subset_maker(x)
A list object suitable for use as a subset object
subset
A vector of integers
Robin K. S. Hankin
In this context, x being in “echelon form” means that
x
x is consistent in the sense of passing is.consistent()
is.consistent()
For each \(i\), x[[i]] = 1:n for some \(n\).
x[[i]] = 1:n
is.consistent, is.nested, is.strict
is.consistent
is.nested
is.strict
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