powered by
chooseRulek() selects the k-th production rule index from the vector of production rule indices in the g$PT$LHS for a non-terminal symbol.
chooseRulek()
g$PT$LHS
chooseRulek(riv, k)
The index of the production rule.
Vector of production rule indices for a non-terminal symbol.
Integer.
chooseRulek(c(7, 8, 9), 9) chooseRulek(as.vector(1), 9)
Run the code above in your browser using DataLab