powered by
Retrieve the node labels of a PST
# S4 method for PSTf nodenames(object, L)
A vector containing the node labels (i.e. contexts).
A PST, that is an object of class PSTf as returned by the pstree or prune method.
PSTf
pstree
prune
integer. Depth of the tree for which the node names are retrieved. If missing the names of all the nodes in the tree are returned.
Alexis Gabadinho
data(s1) s1 <- seqdef(s1) S1 <- pstree(s1, L=3) nodenames(S1, L=3) nodenames(S1)
Run the code above in your browser using DataLab