nodenames: Retrieve the node labels of a PST

Description Usage Arguments Value Author(s) Examples

Description

Retrieve the node labels of a PST

Usage

1
2
## S4 method for signature 'PSTf'
nodenames(object, L)

Arguments

object

A PST, that is an object of class PSTf as returned by the pstree or prune method.

L

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.

Value

A vector containing the node labels (i.e. contexts).

Author(s)

Alexis Gabadinho

Examples

1
2
3
4
5
6
data(s1)
s1 <- seqdef(s1)
S1 <- pstree(s1, L=3)

nodenames(S1, L=3)
nodenames(S1)


Search within the PST package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.