Skip to contents

Download animal records in CSV, JSON, or Parquet format. Filters are the same as dep_read_animals().

Usage

dep_share_animals(
  format = c("csv", "json", "parquet"),
  id = NULL,
  event_id = NULL,
  species = NULL,
  sex = NULL,
  state = NULL,
  attacked_by = NULL,
  analysis_unit_id = NULL,
  management_unit_id = NULL,
  attacked_at = NULL,
  died_at = NULL,
  includes = NULL,
  dry_run = FALSE,
  verbosity = 0
)

Arguments

format

Character. Export format: "csv", "json", or "parquet".

id

Integer vector. Filter by event ID(s).

event_id

Integer vector. Filter by parent event ID(s).

species

Character. Filter by species name.

sex

Character. Filter by sex.

state

Character vector. Filter by animal state. See dep_animal_states().

attacked_by

Character. Filter by predator species.

analysis_unit_id

Integer. Filter by analysis unit (DAU) ID.

management_unit_id

Integer. Filter by management unit (GMU) ID.

attacked_at

Character. Filter by attack date (e.g. "2024-01-01,2024-12-31" for a range).

died_at

Character. Filter by death date (same range format).

includes

Character vector of related resources to include in the response. Valid values: "calls", "investigations", "animals", "group".

dry_run

Logical. If TRUE, prints the request without sending it.

verbosity

Integer. How much information to print (0 = silent, 1 = headers, 2 = headers + body, 3 = full).

Value

The parsed export data, or the raw response if dry_run is TRUE.