Converts eBird (preferably zero-filled data) into a simple features spatial object.

make_ebird_spatial(
  df,
  crs.target,
  dir.out = NULL,
  grid = NULL,
  overwrite = FALSE
)

Arguments

df

A data frame with columns c(latitude, longitude) and optional attributes (columns).

crs.target

the integer representing the target CRS.

dir.out

path to where the resulting spatial data frame will be saved. If NULL will not save to file.

grid

a spatial grid over which the eBird data will be overlaid.

overwrite

logical if TRUE will overwrite any existing file named "ebird_spatial.rds" in path dir.out