Query and download event metadata for one tag from PTAGIS. In the interest of not overwhelming PTAGIS with data requests, this function should not be used to query more than a thousand tags a day and there should be a couple of seconds between calls. If a user is looking for more than that, using the advanced reporting system in PTAGIS is the best option at this time.

queryTagEvents(
  ptagis_tag_code = NULL,
  api_key = NULL,
  type = c(NA, "mark", "recapture", "recovery", "observation")
)

Arguments

ptagis_tag_code

PTAGIS tag code

api_key

PTAGIS API key, given to individual users

type

one of `mark`, `recapture`, `recovery`, or `observation`. If one is specified, only data about events of that type are returned. The default, `NA`, will return data about all events for that tag.

Value

Gets data about all events for a given tag code.

Author

Kevin See

Examples

queryTagEvents("3D9.1C2D929849")
#> Error in queryTagEvents("3D9.1C2D929849"): !is.null(api_key) is not TRUE