save_json {greenR} | R Documentation |
Save the green index data as a GeoJSON file
Description
This function saves the green index data for all the edges as a GeoJSON file.
Usage
save_json(green_index, file_path)
Arguments
green_index |
A data frame containing the calculated green index values for each edge. |
file_path |
The file path where the GeoJSON file will be saved. |
Value
No return value, called for side effects
Examples
## Not run:
# Generate a sample green_index data frame
green_index <- data.frame(
green_index = runif(1000),
geometry = rep(sf::st_sfc(sf::st_point(c(0, 0))), 1000)
)
save_json(green_index, "green_index_data.geojson")
## End(Not run)
[Package greenR version 0.0.1.3 Index]