getEtnData: Retrieve ETN-data from the LifeWatch project

View source: R/lwdataFunctions.R

getEtnDataR Documentation

Retrieve ETN-data from the LifeWatch project

Description

Retrieves the European Tracking Network (ETN) data from the LifeWatch project. Need valid authentication to access the entire data. To get an account, register via the Lifewatch RShiny registration webpage.

Usage

getEtnData(
  startdate,
  stopdate,
  action,
  by,
  networks,
  projects,
  usr = NULL,
  pwd = NULL,
  params = FALSE,
  ...
)

Arguments

startdate

Starting date for the query

stopdate

Stopping date for the query

action

One of ('Time bins','Residencies','Active network','Detections')

by

Sample period, one of ("1 day", "1 week", "60 min","10 min", "1 min")

networks

List of networks to be included in the query. See listEtnProjects.

projects

List of projects to be included in the query. See listEtnProjects.

usr

Username to connect to ETN database

pwd

Password to connect to ETN database

params

If TRUE, returns a list with the dataset and the query parameters applied in the server side. IF FALSE returns only the data.

...

Reserved for internal use.

Value

Dataframe with the specified ETN data.

Examples

getEtnData("2020-04-19", "2020-04-21", action = "Time bins", by = "1 day",
networks = "All", projects = "All")
getEtnData("2016-01-01", "2017-12-31", action = "All", by = "1 week",
networks = "Azorean acoustic receiver network", projects = "Lifewatch", params = TRUE)

lifewatch/lwdataexplorer documentation built on Aug. 24, 2024, 12:35 a.m.