get_nightly_data: Get Nightly data for a specific Survey Type

View source: R/nabat_gql_queries.R

get_nightly_dataR Documentation

Get Nightly data for a specific Survey Type

Description

Returns a dataframe with Detection history (long format) that can be used to create a wide format per species

Usage

get_nightly_data(
  token,
  sp_code,
  survey_type = "bulk_sae",
  sample_frame = NULL,
  project_id = NULL,
  years = NULL,
  branch = "prod",
  url = NULL,
  aws_gql = NULL,
  aws_alb = NULL,
  docker = FALSE
)

Arguments

token

List token created from get_nabat_gql_token() or get_refresh_token()

sp_code

Character NABat species code/s from get_species()

survey_type

(optional) String 'bulk_sae' | 'bulk_mae' | 'bulk_hib' | 'bulk_mat'

sample_frame

(optional) String 'CONUS' | 'Alaska' | 'Canada' | 'Mexico' | 'Pureto Rico' | 'Hawaii'

project_id

Numeric for a project id or multiple project ids

years

(optional) Numeric for all years to be extracted for this data

branch

(optional) String that defaults to 'prod' but can also be 'dev'|'beta'|'local'

url

(optional) String url to use for GQL

aws_gql

(optional) String url to use in aws

aws_alb

(optional) String url to use in aws

docker

(optional) Boolean if being run in docker container or not


usgs/nabatr documentation built on Jan. 28, 2024, 7:10 a.m.