toggleConstraints: Toggle constraints

View source: R/constraints_operators.R

toggleConstraintsR Documentation

Toggle constraints

Description

toggleConstraints is a function to toggle individual constraints in a constraints object.

Usage

toggleConstraints(object, on = NULL, off = NULL)

Arguments

object

a constraints object from loadConstraints.

on

constraint indices to mark as active. Also accepts character IDs.

off

constraint indices to mark as inactive. Also accepts character IDs.

Value

toggleConstraints returns the updated constraints object.

Examples

constraints_science2 <- toggleConstraints(constraints_science, off = 32:36)
constraints_science3 <- toggleConstraints(constraints_science2, on = 32:36)
constraints_science4 <- toggleConstraints(constraints_science, off = "C32")


TestDesign documentation built on Feb. 16, 2023, 7:19 p.m.