datepit_to_ID: datepit_to_ID

View source: R/datepit.R

datepit_to_IDR Documentation

datepit_to_ID

Description

Function for obtaining the ID of an individual using columns date and pit. It takes in two tables, one to fill in (tb) and one to look up pit-tags from (tb_pit)

Usage

datepit_to_ID(tb, tb_pit)

Arguments

tb

table to put ID's into (and get pit tags and dates from) must have columns "date" and "pit". Date should be formated as date-month-year or as a date value. The function's output will be this table plus a new "ID" column.

tb_pit

a table that contains all known pit tags, their date of registration, and their corresponding ID. Date should be formated as data-month-year or as a date value.

Examples

tb_fish_withID <- datepit_to_ID(tb_fish,tb_pit)
tb_fish_withID <- tb_fish %>% datepit_to_ID(tb_pit)
tb_fish_withID <- tb_fish %>% datepit_to-ID(read.table("pit date reference.txt",head=T))

Eiriksen/datepit documentation built on April 22, 2023, 4:28 a.m.