powered by
Create a subset of a constraints object:
constraints
constraints[i]
subsetConstraints(constraints, 1:10)
Combine two constraints objects:
c(constraints1, constraints2)
combineConstraints(constraints1, constraints2)
subsetConstraints(x, i = NULL)combineConstraints(x1, x2)# S4 method for constraints,numeric [(x, i, j, ..., drop = TRUE)# S4 method for constraints c(x, ...)
combineConstraints(x1, x2)
# S4 method for constraints,numeric [(x, i, j, ..., drop = TRUE)
# S4 method for constraints c(x, ...)
a constraints object.
indices to use in subsetting.
not used, exists for compatibility.
c1 <- constraints_science c2 <- c1[1:10] c3 <- c1[c(1, 11:36)] # keep constraint 1 for test length c4 <- c(c2, c3)
Run the code above in your browser using DataLab