getMvData: Gets movebank data based on api request

View source: R/get_data.r

getMvDataR Documentation

Gets movebank data based on api request

Description

Gets movebank data based on api request

Usage

getMvData(
  apiReq,
  accept_license = FALSE,
  handle = NULL,
  save_as = NULL,
  clean = TRUE
)

Arguments

apiReq

character URL for API request.

accept_license

boolean Set to TRUE to use md5 method to accept license terms over api.

handle

handle Handle object used in httr. Mainly for testing purposes to start with blank session. Use as handle=handle(”)

save_as

character Save response directly to disk.

clean

character Defaults to true. Removes line breaks and trims whitespace from all fields

Value

data.frame Data from API request. If saving results to disk, returns TRUE.

Examples

apiReq <- https://www.movebank.org/movebank/service/direct-read?entity_type=study&study_id=2911040
getMvData(apiReq,accept_license=TRUE)


benscarlson/rmoveapi documentation built on April 2, 2022, 9:49 a.m.