Learn R Programming

cocoreg (version 0.1.1)

generate_paths_noncyclic: Generate non-cyclic paths

Description

From a set of n numbers, generate all possible paths starting from and ending on a given number.

Usage

generate_paths_noncyclic(ind, n, sample_paths = FALSE)

Arguments

ind
The starting dataset
n
The number of datasets.
sample_paths
boolean, If FALSE, all possible paths are generated. If TRUE one path per ending point is selected.

Value

A list of lists containing the paths.