toggleConstraints
is a function for toggling individual constraints in a constraints
object.
toggleConstraints(object, on = NULL, off = NULL)
a constraints
object from loadConstraints
.
constraint indices to mark as active. Also accepts character IDs.
constraint indices to mark as inactive. Also accepts character IDs.
toggleConstraints
returns the updated constraints
object.
constraints_science2 <- toggleConstraints(constraints_science, off = 32:36)
constraints_science3 <- toggleConstraints(constraints_science2, on = 32:36)
constraints_science4 <- toggleConstraints(constraints_science, off = "C32")