Description Usage Arguments Details Value References Examples

View source: R/apportion_web.R

Distribute streamflow depletion within a stream network using web distance weighting.

1 2 3 4 5 6 7 8 | ```
apportion_web(
reach_dist,
w,
max_dist = Inf,
min_frac = 0,
reach_name = NULL,
dist_name = NULL
)
``` |

`reach_dist` |
data frame with two columns: |

`w` |
weighting factor; 1 for web, 2 for web squared. |

`max_dist` |
the maximum distance of a stream to be depleted; defaults to |

`min_frac` |
the minimum |

`reach_name` |
The name of the column in |

`dist_name` |
The name of the column in |

Since analytical models assume the presence of 1 (or sometimes 2) linear streams, the `apportion_*`

functions
can be used to distribute that depletion to various reaches within a real stream network. These geometric functions are described
in Zipper et al (2018), which found that `apportion_web`

a weighting factor (`w`

) of 2 produced the best results.

A data frame with two columns:

- reach
the grouping variable input in

`reach_dist`

- frac_depletion
the proportion of streamflow depletion from the well occurring in that reach.

Zipper, SC, T Dallemagne, T Gleeson, TC Boerman, A Hartmann (2018). Groundwater Pumping Impacts on Real Stream Networks: Testing the Performance of Simple Management Tools. Water Resources Research. doi:10.1029/2018WR022707.

1 2 3 4 5 6 7 8 9 | ```
reach_dist <- data.frame(reach = seq(1,5),
dist = c(100, 150, 900, 300, 200))
apportion_web(reach_dist, w = 2) # same as inverse because there's only one dist per reach
apportion_web(reach_dist, w = 2, max_dist = 500)
reach_dist <- data.frame(reach = c("A", "A", "A", "B", "B"),
dist = c(100, 150, 900, 300, 200))
apportion_web(reach_dist, w = 1)
apportion_web(reach_dist, w = 1, max_dist = 500)
``` |

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.