While trying to use erase_water() on a subset of tracts for an area, I realized that it returns an empty data frame if there is no overlapping water area. I just implemented a fix on my fork that I think also may improve performance for erase_water() since it incorporates the filter_by parameter when calling tigris::counties().
I'm optimistic this will be a welcome change so I'll go ahead and open a pull request for review.
While trying to use
erase_water()
on a subset of tracts for an area, I realized that it returns an empty data frame if there is no overlapping water area. I just implemented a fix on my fork that I think also may improve performance forerase_water()
since it incorporates thefilter_by
parameter when callingtigris::counties()
.I'm optimistic this will be a welcome change so I'll go ahead and open a pull request for review.