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() |>
galah_identify("Aves") |>
galah_filter(year > 2000 & year < 2005) |>
galah_group_by(year) |>
atlas_counts()
# Get information for all species in *Cacatuidae* family
galah_call() |>
galah_identify("Cacatuidae") |>
atlas_species()
# Download records of genus *Eolophus* from 2001 to 2004
galah_config(email = "your-email@email.com")
galah_call() |>
galah_identify("Eolophus") |>
galah_filter(year > 2000 & year < 2005) |>
atlas_occurrences()
# ----------
# Since galah 2.0.0, a pipe can start with a `request_` function.
# This allows users to use `collapse()`, `compute()` and `collect()`.
# Get number of records of *Aves* from 2001 to 2004 by year
request_data(type = "occurrences-count") |>
galah_identify("Aves") |>
galah_filter(year > 2000 & year < 2005) |>
galah_group_by(year) |>
collect()
# Get information for all species in *Cacatuidae* family
request_data(type = "species") |>
galah_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