Skip to contents

Add an ID column from 'y' if it intersects with 'x'

Usage

add_intersects_ids(x, y, id_col)

Arguments

x

sf dataframe

y

sf dataframe

id_col

character, unique ID column name in 'y'

Value

sf dataframe of x with id_col added if it intersects with y