Extracts pairs from a path of indices, representing the path by the pairs (connected by common variable) and return a shortened path.
Arguments
- x
the path, a
vectororlistof indices of the variables to be plotted.- n
A
vectorof length two giving the number of pairs to extract from the pathx(ifNULL, all pairs are returned (nothing extracted); if of length one, it is replicated in the pair). The first number corresponds to the beginning of the path, the second to the end; at least one of the two numbers should be >= 1.
Value
returns an object of the same type as the input
x but (possibly) shortened. It extracts the first/last so-many
pairs of x.
See also
zenplot() which provides the zenplot.
Other tools related to constructing zenpaths:
connect_pairs(),
graph_pairs(),
groupData(),
indexData(),
zenpath()
