#' Restrict data to the french Alps
#'
#' @param x tibble
#'
#' @return tibble
#'
#' @export
restrict_to_french_alps <- function(x) {
regions_sf <- dplyr::bind_rows(
geojsonsf::geojson_sf("data-raw/paca.geojson"),
geojsonsf::geojson_sf("data-raw/ara.geojson"))
sf::st_filter(x, regions_sf, .predicate = sf::st_within)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.