R/preprocess_data.R

Defines functions join_data

Documented in join_data

#' Join spatial and incidence datasets
#' @param sf_data sf object
#' @param tbl_data tibble of incidence
#' @param by Column name to join on
#' @return sf object with joined attributes
#' @export
join_data <- function(sf_data, tbl_data, by) {
  sf_data %>% dplyr::inner_join(tbl_data, by = by)
}

Try the mlspatial package in your browser

Any scripts or data that you put into this service are public.

mlspatial documentation built on Aug. 27, 2025, 1:09 a.m.