% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api.R
\name{explode_sf_with_lookup}
\alias{explode_sf_with_lookup}
\title{Explode any sf object using an external lookup table}
\usage{
explode_sf_with_lookup(
  sf_obj,
  join_col,
  lookup,
  lookup_key = join_col,
  region_col = "region",
  quiet = FALSE,
  ...
)
}
\arguments{
\item{sf_obj}{Projected sf object}

\item{join_col}{Column in sf_obj to join on}

\item{lookup}{data.frame with join key and region column}

\item{lookup_key}{Column name in lookup matching join_col}

\item{region_col}{Column name in lookup containing region labels}

\item{quiet}{If \code{TRUE}, suppress \code{message()} output. Default \code{FALSE}.
Passed through to \code{\link[=explode_sf]{explode_sf()}}.}

\item{...}{Passed to \code{\link[=explode_sf]{explode_sf()}}}
}
\value{
An \code{exploded_map} S3 object
}
\description{
Joins the lookup to \code{sf_obj} before exploding. Unmatched units are
labelled "Other".
}
