View source: R/calculate_green_index.R
| calculate_green_index | R Documentation |
Calculates the green index for a given set of OpenStreetMap (OSM) data using DuckDB.
calculate_green_index(
osm_data,
crs_code,
D = 100,
buffer_distance = 120,
show_time = TRUE
)
osm_data |
List containing OSM data (highways, green_areas, trees). |
crs_code |
Coordinate reference system code for transformations. |
D |
Distance decay parameter (default = 100). |
buffer_distance |
Buffer distance for spatial joins (default = 120). |
show_time |
Logical, whether to print processing time (default TRUE). |
A spatial data frame with calculated green index.
## Not run:
osm_data <- get_osm_data("Basel, Switzerland")
green_index <- calculate_green_index(osm_data, 2056)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.