get_animals | R Documentation |
Get data for animals, with options to filter results. Associated tag
information is available in columns starting with tag
and
acoustic_tag_id
. If multiple tags are associated with a single animal,
the information is comma-separated.
get_animals(
connection = con,
animal_id = NULL,
tag_serial_number = NULL,
animal_project_code = NULL,
scientific_name = NULL
)
connection |
A connection to the ETN database. Defaults to |
animal_id |
Integer (vector). One or more animal identifiers. |
tag_serial_number |
Character (vector). One or more tag serial numbers. |
animal_project_code |
Character (vector). One or more animal project codes. Case-insensitive. |
scientific_name |
Character (vector). One or more scientific names. |
A tibble with animals data, sorted by animal_project_code
,
release_date_time
and tag_serial_number
. See also
field definitions.
# Set default connection variable
con <- connect_to_etn()
# Get all animals
get_animals(con)
# Get specific animals
get_animals(con, animal_id = 305) # Or string value "305"
get_animals(con, animal_id = c(304, 305, 2827))
# Get animals from specific animal project(s)
get_animals(con, animal_project_code = "2014_demer")
get_animals(con, animal_project_code = c("2014_demer", "2015_dijle"))
# Get animals associated with a specific tag_serial_number
get_animals(con, tag_serial_number = "1187450")
# Get animals of specific species (across all projects)
get_animals(con, scientific_name = c("Rutilus rutilus", "Silurus glanis"))
# Get animals of a specific species from a specific project
get_animals(con, animal_project_code = "2014_demer", scientific_name = "Rutilus rutilus")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.