Learn R Programming

RcppAlgos (version 2.5.0)

Constraints-class: S4-class for Exposing C++ Constraints Class

Description

The Constraints class is an S4-class that exposes C++ classes that provide access to iterators and other useful methods.

Arguments

Slots

nextIter

Retrieve the next lexicographical result

nextNIter

Pass an integer n to retrieve the next n lexicographical results

nextRemaining

Retrieve all remaining lexicographical results

currIter

Returns the current iteration

startOver

Resets the iterator

sourceVector

View the source vector

summary

Returns a list of summary information about the iterator

See Also

Combo-class, Partitions-class

Examples

Run this code
# NOT RUN {
  showClass("Constraints")
# }

Run the code above in your browser using DataLab