get_id_from_key: Extract collar ID from key files

View source: R/fetch_vectronics.R

get_id_from_keyR Documentation

Extract collar ID from key files

Description

Extract collar ID from key files

Usage

get_id_from_key(key_paths)

Arguments

key_paths

The full path to one or more key files

Details

Vectronics includes the collar ID in the XML of the .keyx file. The get_id_from_key function gives the user the ability to read the ID encoded in the key file. This function was originally intended for internal package use, but is exported to package users in the hope it is helpful for reporting or other purposes. There is no reason to call it within the established package workflow.

Value

character vector of collar IDs

See Also

Other get: get_keys(), get_paths()

Examples

get_id_from_key(
  get_paths(system.file("extdata", package = "collar"))
)

Huh/collar documentation built on Aug. 5, 2022, 11:02 p.m.