# \donttest{
## the names of all terms used in movebank
movebank_get_vocabulary() |>
names()
## retrieve one variable
movebank_get_vocabulary("gps hdop")
## Count the units used in movebank
movebank_get_vocabulary() |>
unlist() |>
grep(pattern = "Units:", value = TRUE) |>
sub(replacement = "", pattern = ".*Units: ") |>
sub(replacement = "", pattern = "; .*") |>
table() |>
sort()
## different return types:
movebank_get_vocabulary("light-level", return_type = "definition")
movebank_get_vocabulary("light-level", return_type = "xml")
movebank_get_vocabulary("light-level", return_type = "uri")
movebank_get_vocabulary("light-level", return_type = "list")
## get definitions of all column names of a move2 object, the conversion
## to a list is for better printing
data <- mt_read(mt_example())
movebank_get_vocabulary(data) |>
as.list()
# }
Run the code above in your browser using DataLab