Skip to contents

Search a term by its label in the Movebank Attribute Dictionary (MVB). Returns in order: term with matching prefLabel, matching altLabel or error when no matching term is found.

Usage

get_mvb_term(label)

Arguments

label

Label of the term to look for. Case will be ignored and -, _, . and : interpreted as space.

Value

List with term information.

See also

Other support functions: datacite_to_eml(), get_aphia_id()

Examples

get_mvb_term("animal_id")
#> Error in purrr::keep(terms, function(x) {    tolower(x$prefLabel$`@value`) == label_clean}):  In index: 1.
#> Caused by error:
#> ! `.p()` must return a single `TRUE` or `FALSE`, not an empty logical
#>   vector.

get_mvb_term("Deploy.On.Date")
#> Error in purrr::keep(terms, function(x) {    tolower(x$prefLabel$`@value`) == label_clean}):  In index: 1.
#> Caused by error:
#> ! `.p()` must return a single `TRUE` or `FALSE`, not an empty logical
#>   vector.