R/thin.r

Defines functions thin

Documented in thin

#' Thin a shapefile
#'
#' @param x shapefile
#' @param tolerance numeric value between 0 and 1
#' @export
#' @importFrom rmapshaper ms_simplify
thin <- function(x, tolerance = 0.1){
  rmapshaper::ms_simplify(x, snap_interval = tolerance)
}
Stat585-at-ISU/worldle documentation built on April 4, 2023, 5:45 a.m.