pathify: Create a path

Description Usage Arguments Value

Description

Given a set of numbers and a starting point, create a path from the starting point through each point. If cyclic = FALSE, the path stops at p[length(p)] and if cyclic = TRUE the patch goes back to ind.

Usage

1
pathify(ind, p, cyclic = FALSE)

Arguments

ind

[1,1] int, The starting point.

p

[1,m] int, A set of numbers through which the path must go, excluding the starting point.

cyclic

boolean, If TRUE, the path leads back to the starting point. If FALSE, the path stops at last element of p.

Value

A list containing the path definition.



Search within the cocoreg 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.