# NOT RUN {
points_to_polygon(nl_postcode2, insurance, sum(amount, na.rm = TRUE))
# }
# NOT RUN {
shp_read <- sf::st_read(~/path/to/file.shp)
points_to_polygon(shp_read, insurance, sum(amount, na.rm = TRUE))
# }
Run the code above in your browser using DataLab