mt_get_dataset: Download tracking data from data repositories

View source: R/mt_get_dataset.R

mt_get_datasetR Documentation

Download tracking data from data repositories

Description

Downloads animal tracking data from data repositories (Movebank Data Repository or Zenodo) and returns a move2 object. This function provides a unified interface for accessing tracking data that has been published in data repositories.

Usage

mt_get_dataset(url, ...)

Arguments

url

A character string containing the URL or DOI of the data repository record. Supported formats:

  • Movebank Data Repository: DOI URLs like "https://doi.org/10.5441/001/1.734"

  • Zenodo: Record URLs like "https://zenodo.org/records/5068540" or DOI URLs like "https://doi.org/10.5281/zenodo.12336021"

...

Additional arguments passed to internal repository-specific download functions. For zenodo resources can be used to read only specific resources (e.g. "gps")

Details

This function automatically detects whether the provided URL points to a Movebank Data Repository record (via DOI) or a Zenodo record, and uses the appropriate download method.

Value

A move2 object containing the tracking data.

See Also

movebank_download_study() for downloading directly from Movebank API mt_read() for reading tracking data from local files

Examples

## Not run: 
# Download from Movebank Data Repository using DOI
move2_data <- mt_get_dataset("http://doi.org/10.5441/001/1.734")

# Download from Zenodo using record URL
move2_data <- mt_get_dataset("https://zenodo.org/records/12336021",
 resources="gps")

## End(Not run)


move2 documentation built on Dec. 2, 2026, 1:08 a.m.