parse_tagid_col: parse default-formatted Vemco tag column

Description Usage Arguments Value Author(s) Examples

View source: R/parsing_functions.R

Description

separates the vemco-dictated column formatting of freq-codespace-tagid, then just keeps the codespace and tagids as separate columns

Usage

1
parse_tagid_col(df, tagcol = "TagID", sepchar = "-")

Arguments

df

dataframe with a transmitter column that is formatted as 'Freq-CodeSpace-Transmitter'

tagcol

the name of the column you wish to parse

sepchar

the character or symbol on which to split; defaults to '-'

Value

A dataframe with the CodeSpace and TagID columns at the end, with frequency columns removed.

Author(s)

Myfanwy Johnston

Examples

1
2
3
4
df <- structure(list(TagID = c("A69-1206-112", "A69-1206-152", "A69-1206-1908"
), Monitor = c("VR2W-106683", "VR2W-106683", "VR2W-106683"),
    Detections = c(1L, 1L, 1L)), row.names = c(NA, 3L), class = "data.frame")
parse_tagid_col(df, "TagID")

fishsciences/ybt documentation built on March 11, 2021, 8:45 a.m.