rloopsfor-loopforeachflowchart

How to use a "Loop limit" symbol in a flowchart representing a simple R "for loop"


I know that a simple R "for" loop like the following:

n <- 20
for (i in 1:n) {
  print(i)
}

can be represented by a flowchart like:

A flowchart representing a loop

However, in any set of flowchart symbols there is the "Loop limit" symbol:

Loop limit symbol

which is described as the point at which a loop should stop.

I googled the "Loop limit flowchart symbol" and, though I found many descriptions of it, I couldn´t find any examples of its use. So I wonder if the following flowchart resembles the right use of such a symbol to represent the above given loop

Loop using the "Loop limit" symbol


Solution

  • Following the convention for the "loop limit" symbol expressed in https://www.conceptdraw.com/solution-park/diagram-flowcharts, which says:

    Loop limit: Indicate the start of a loop. Flip the shape vertically to indicate the end of a loop.

    I am modifying the flowchart as follows:

    Use of "loop limit" symbol in a flowchart

    Maybe this is the right use of the symbol.