loopviz: Visualize Nested Loops

Description Usage Arguments

View source: R/loopviz.R

Description

Simply pass a vector of integers. The first integer represents the number of iterations for the top level loop. The second integer represents the number of iterations for the first nested loop and so on. As an example, loopviz(1, 2) is a loop that iterates once and contains a nested loop which iterates twice.

Usage

1
2
loopviz(..., animate = FALSE, delay = NULL, loop = TRUE,
  translate = FALSE)

Arguments

...

A vector of integers

animate

Whether or not to animate the for loop, not working...

delay

Delay between frames, to be used when animating for loops

loop

If TRUE, continue looping the animation

translate

If TRUE, translates the visual to valid, runnable code


tyluRp/loopviz documentation built on Nov. 5, 2019, 11:02 a.m.