download_minimal_wastd_turtledata: Download a minimal dataset of turtle observations from WAStD

View source: R/download_minimal_wastd_turtledata.R

download_minimal_wastd_turtledataR Documentation

Download a minimal dataset of turtle observations from WAStD

Description

Download a minimal dataset of turtle observations from WAStD

Usage

download_minimal_wastd_turtledata(
  source = "odk",
  year = NULL,
  api_url = wastdr::get_wastdr_api_url(),
  api_token = wastdr::get_wastdr_api_token(),
  verbose = wastdr::get_wastdr_verbose()
)

Arguments

source

The WAStD Encounter source, default: "odk".

year

The earliest calendar year to be returned. Default: NULL. This value, if not NULL, will be used to construct a query parameter when_year_gte=2019

api_url

(character) The WAStD API URL, default get_wastdr_api_url, see wastdr_setup

api_token

(character) The WAStD API token, default get_wastdr_api_token, see wastdr_setup

verbose

Whether to show debug messages. Default: wastdr::get_wastdr_verbose()

Value

A list of tibbles:

  • users A tibble of user names, roles, and contact details which can be used to resolve submitted user names to WAStD user IDs

  • enc A tibble of encounters (source, source ID, QA status) which can be used to determine which encounters to create / update / skip.

  • surveys A tibble of surveys reconstructed from source and year.

See Also

Other api: build_auth(), download_wastd_sites(), download_wastd_turtledata(), download_wastd_users(), export_wastd_turtledata(), filter_wastd_turtledata_area(), filter_wastd_turtledata_seasons(), filter_wastd_turtledata(), handle_http_status(), wastd_GET(), wastd_POST(), wastd_bulk_post(), wastd_chunk_post(), wastd_create_update_skip(), wastd_parse(), wastd_post_one()


parksandwildlife/wastdr documentation built on Nov. 17, 2022, 4:52 p.m.