if (FALSE) {
# Best practice is to first calculate the number of records
galah_call() |>
filter(year == 2015) |>
atlas_counts()
# Download occurrence records for a specific taxon
galah_config(email = "your_email_here") # login required for downloads
galah_call() |>
identify("Reptilia") |>
atlas_occurrences()
# Download occurrence records in a year range
galah_call() |>
identify("Litoria") |>
filter(year >= 2010 & year <= 2020) |>
atlas_occurrences()
# Download occurrences records in a WKT-specified area
polygon <- "POLYGON((146.24960 -34.05930,
146.37045 -34.05930,
146.37045 -34.152549,
146.24960 -34.15254,
146.24960 -34.05930))"
galah_call() |>
identify("Reptilia") |>
filter(year >= 2010, year <= 2020) |>
st_crop(polygon) |>
atlas_occurrences()
# Get a list of species within genus "Heleioporus"
# (every row is a species with associated taxonomic data)
galah_call() |>
identify("Heleioporus") |>
atlas_species()
# Download Regent Honeyeater records with multimedia attached
# Note this returns one row per multimedia file, NOT one per occurrence
galah_call() |>
identify("Regent Honeyeater") |>
filter(year == 2011) |>
atlas_media()
# Get a taxonomic tree of *Chordata* down to the class level
galah_call() |>
identify("chordata") |>
filter(rank == class) |>
atlas_taxonomy()
}
Run the code above in your browser using DataLab