initAnimal: Init Animal Tracking

View source: R/initAnimal.R

initAnimalR Documentation

Init Animal Tracking

Description

Creates directories and a R list with all the needed tRackIT information for one animal. R list is stored as .rds in animals directory-projroot/data/individuals/animalID/animalID_idFile.rds

Usage

initAnimal(
  projList = NULL,
  projroot = ".",
  saveAnml = FALSE,
  animalID = NULL,
  species = NA,
  sex = NA,
  age = NA,
  weight = NA,
  rep.state = NA,
  freq = NA,
  start = NA,
  end = NA,
  duration_min = NA,
  duration_max = NA
)

Arguments

projList

list, generatet by initProject function

projroot

string, project directory

saveAnml

logical, if TRUE animal list will be stored as .rds an can be loaded with getAnml()

animalID

string, label of the tagged individual

species

string, species of the tagged individual

sex

string, sex of the tagged individual

age

string, age of the tagged individual

weight

string, weight of the tagged individual

rep.state

string, reproductive state of the tagged individual

freq

num, tag frequency (khz)

start

string, start of tracking YYYY-MM-DD

end

string, end of tracking YYYY-MM-DD

duration_min

numeric, minimum duration of single signal

duration_max

numeric, maximum duration of single signal

Author(s)

Marvin Ludwig & Jannis Gottwald

Examples

# get project file
#projroot<-paste0(getwd(),"/tRackIT_test_data/")
#test_project <- getProject(projroot = projroot, plot = TRUE)
# init animal
#initAnimal(projList = test_project, projroot = "test_project/", saveAnml = TRUE, animalID = test_project$tags$ID[1], species = "woodpecker", sex = "m", age = "adult", weight = 36, rep.state = "breeding", freq = test_project$tags$frequency[1], start = test_project$tags$start[1], end = test_project$tags$end[1], duration_min = 0.012, duration_max = 0.4)


Nature40/tRackIT documentation built on Nov. 21, 2023, 3:43 a.m.