powered by
Get terminal node observation assignments
getnodes(tree, x)
vector of tree terminal node identifiers (numbers) corresponding to each observation (row of x)
model object output from contrast() or prune()
training input predictor data matrix or data frame in same format as in contrast()
contrast()