33 lines
1.1 KiB
R
33 lines
1.1 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/functions.R
|
|
\name{process_ecoregions}
|
|
\alias{process_ecoregions}
|
|
\title{Process and Clip EPA Ecoregions}
|
|
\usage{
|
|
process_ecoregions(
|
|
zip_path,
|
|
target_states = c("Washington", "Georgia"),
|
|
simplify_tol = 0.05
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{zip_path}{Character string. The file path to the zipped EPA shapefile.}
|
|
|
|
\item{target_states}{Character vector. The names of the states to clip the
|
|
ecoregions to. Defaults to \code{c("Washington", "Georgia")}.}
|
|
|
|
\item{simplify_tol}{Numeric. The simplification tolerance passed to
|
|
\code{rmapshaper::ms_simplify}. Range is 0-1, where higher numbers remove more detail.
|
|
Defaults to 0.05.}
|
|
}
|
|
\value{
|
|
An \code{sf} object containing the processed ecoregions with standardized
|
|
columns \code{US_L3NAME} and \code{STATE_NAME}.
|
|
}
|
|
\description{
|
|
Extracts EPA Level III ecoregion data from a zipped shapefile,
|
|
standardizes column names, and clips the geometry to specified state boundaries.
|
|
It includes robust steps for geometry repair (handling spherical validity),
|
|
small island removal, and simplification for optimized plotting.
|
|
}
|