powered by
toggleConstraints is a function to toggle individual constraints in a '>constraints object.
toggleConstraints
'>constraints
toggleConstraints(object, on = NULL, off = NULL)
a '>constraints object from loadConstraints.
loadConstraints
constraint indices to mark as active.
constraint indices to mark as inactive.
toggleConstraints returns the updated '>constraints object.
# NOT RUN { constraints_science2 <- toggleConstraints(constraints_science, off = 32:36) constraints_science3 <- toggleConstraints(constraints_science, on = 32:36) # }
Run the code above in your browser using DataLab