Description Usage Arguments Details Examples

This `R6`

Class provides methods to calculate the total number of
squares which will fill with water and to plot the walls and filled valleys.

1 2 3 4 |

- p
A

`waterflow`

object.- wall
A numeric vector of wall heights

`$new()`

calculates the amount of water the valleys will be filled with.

`$total()`

returns the total amount of water the valleys will be filled
with.

`$plot()`

plots the walls filled with water.

`$print()`

returns the `data.frame`

of wall and water heights.

1 2 3 4 5 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.