Description Usage Arguments Value Author(s) Examples
View source: R/concentration.R
The sum of all observations within a circle of a certain radius.
1 2 3 4 5 6 7 8 9 10 11 | concentration(
sub,
full,
value,
lon_sub = lon,
lat_sub = lat,
lon_full = lon,
lat_full = lat,
radius = 200,
display_progress = TRUE
)
|
sub |
data.frame of locations to calculate concentration risk for (target points). |
full |
data.frame to find the locations within radius |
value |
column name with value of interest to summarize in |
lon_sub |
column name in |
lat_sub |
column name in |
lon_full |
column name in |
lat_full |
column name in |
radius |
radius (in meters) (default is 200m). |
display_progress |
show progress bar (TRUE/FALSE). Defaults to TRUE. |
A data.frame equal to data.frame sub
including an extra column concentration
.
Martin Haringa
1 2 | df <- data.frame(location = c("p1", "p2"), lon = c(6.561561, 6.561398), lat = c(53.21369, 53.21326))
concentration(df, Groningen, value = amount, radius = 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.