library(dggridR)
dggs <- dgconstruct(spacing=1000,metric=FALSE,resround='down')
#Get grid cells for the conterminous United States
grid <- dgrectgrid(dggs,
minlat=24.7433195, minlon=-124.7844079,
maxlat=49.3457868, maxlon=-66.9513812)
Run the code above in your browser using DataLab