if (FALSE) {
# Begin your query with `galah_call()`, then pipe using `%>%` or `|>`
# Get number of records of *Aves* from 2001 to 2004 by year
galah_call() |>
identify("Aves") |>
filter(year > 2000 & year < 2005) |>
group_by(year) |>
atlas_counts()
# Get information for all species in *Cacatuidae* family
galah_call() |>
identify("Cacatuidae") |>
atlas_species()
# Download records of genus *Eolophus* from 2001 to 2004
galah_config(email = "your-email@email.com")
galah_call() |>
identify("Eolophus") |>
filter(year > 2000 & year < 2005) |>
atlas_occurrences() # synonymous with `collect()`
# galah_call() is a wrapper to various `request_` functions.
# These can be called directly for greater specificity.
# Get number of records of *Aves* from 2001 to 2004 by year
request_data() |>
identify("Aves") |>
filter(year > 2000 & year < 2005) |>
group_by(year) |>
count() |>
collect()
# Get information for all species in *Cacatuidae* family
request_data(type = "species") |>
identify("Cacatuidae") |>
collect()
# Get metadata information about supported atlases in galah
request_metadata(type = "atlases") |>
collect()
}
Run the code above in your browser using DataLab