get_tags | R Documentation |
Get data for tags, with options to filter results. Note that there
can be multiple records (acoustic_tag_id
) per tag device
(tag_serial_number
).
get_tags(
connection = con,
tag_type = NULL,
tag_subtype = NULL,
tag_serial_number = NULL,
acoustic_tag_id = NULL
)
connection |
A connection to the ETN database. Defaults to |
tag_type |
Character (vector). |
tag_subtype |
Character (vector). |
tag_serial_number |
Character (vector). One or more tag serial numbers. |
acoustic_tag_id |
Character (vector). One or more acoustic tag
identifiers, i.e. identifiers found in |
A tibble with tags data, sorted by tag_serial_number
. See also
field definitions.
Values for owner_organization
and owner_pi
will only be visible if you
are member of the group.
# Set default connection variable
con <- connect_to_etn()
# Get all tags
get_tags(con)
# Get archival tags, including acoustic-archival
get_tags(con, tag_type = c("archival", "acoustic-archival"))
# Get tags of specific subtype
get_tags(con, tag_subtype = c("built-in", "range"))
# Get specific tags (note that these can return multiple records)
get_tags(con, tag_serial_number = "1187450")
get_tags(con, acoustic_tag_id = "A69-1601-16130")
get_tags(con, acoustic_tag_id = c("A69-1601-16129", "A69-1601-16130"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.