Skip to contents

prep.ctags checks a data frame with information about mark-recapture (conventional) tags and converts it into the object required by momo.

Usage

prep.ctags(x, names, origin = NULL, speed.limit = NULL, verbose = TRUE)

Arguments

x

Data frame with information about mark-recapture (conventional) tags. At a minimum, the data frame has to include a column for each the release and recapture date as well as x and y position of the release and recapture. If a tag was not recaptured the entries in the recapture columns shoud be empty (or NA).

names

Names of columns that contain in following order: release time, recapture time, release location x, recapture location x, release location y, recapture location y.

origin

Optional; allows to convert a date from a numeric format to date format by using the origin. Default: NULL.

speed.limit

Optional; allows to apply a speed filter in km/d. All tags that would imply a larger speed by assuming the distance between recapture and relase location. Default: NULL.

verbose

if TRUE, print information to console. Default: TRUE.

Value

A dataframe with prepared tags.

Examples


data(skjepo)

ctags <- prep.ctags(skjepo.ctags,
                    names = c("date_time","date_caught",
                              "rel_lon","recap_lon",
                              "rel_lat","recap_lat"),
                    origin = "1899-12-30",
                    speed.limit = 200)
#> Removing 5 recaptured tags for which release time is after recapture time (t0 > t1).