next_move_tidy | R Documentation |
Determine the next position to move to and the turn out of there
next_move_tidy(plotNo, nPlots, curpath)
plotNo |
current plot number |
nPlots |
total number of plots |
curpath |
the current path |
a list containing the next position to move to (nextpos) and the turn out of there (nextout); Interpretation: nextpos: position of plot number plotNo+1 in the (non-trimmed) occupancy matrix nextout: turn out of nextpos
- This assumes that the last plot is a 1d plot! - It also assumes that first1d = TRUE; will be adapted later in get_path() in case first1d = FALSE. - We start in (1, 2) and also have an additional last column in the occupancy matrix to have the first and last column left in case we end up there with the last 1d plot; this cannot happen for 'zigzag' but for 'tidy'.
Marius Hofert and Wayne Oldford
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.