Skip to contents

find_district_idx() uses sf::st_join() to adds a new column to the parcels data that contains the tidyzoning row index of the district the parcel is in

Usage

find_district_idx(parcels_centroids_sf, tidyzoning, idx_col_name = "zoning_id")

Arguments

parcels_centroids_sf

An sf object with the parcel centroids

tidyzoning

A simple features object with a row for each zoning district and columns holding the geojson formatted zoning requirements of each district.

idx_col_name

The name of the new column that will be added with the district index

Value

The same parcels centroids object that was input but with an additional column stating the row number of the corresponding tidyzoning district