Attach an "sf" object to a grid

attach_spdf(x, spdf)

Arguments

x

object to attach "sf" object to

spdf

an "sf" object to attach