# get data
data(weatherAUT2021)
# set cut-off values
cut_lon = c(9:16, 18)
cut_lat = c(46, 47, 47.5, 48, 49)
# create neighborhood assignments
groups_gridbased(weatherAUT2021$lon,
weatherAUT2021$lat,
cut_lon,
cut_lat)
Run the code above in your browser using DataLab