initProject: Init radio-tracking project

View source: R/initProject.R

initProjectR Documentation

Init radio-tracking project

Description

Creates directories and a R list with all the needed tRackIT-Project information. R list is stored as .rds in projroot directory-projroot/projID_idFile.rds

Usage

initProject(
  projroot = ".",
  logger_data_raw,
  tags = NULL,
  id_col = NULL,
  start_col = NULL,
  end_col = NULL,
  freq_col = NULL,
  dmin_col = NULL,
  dmax_col = NULL,
  stations = NULL,
  s_col,
  x_col,
  y_col,
  r_col,
  o_col,
  epsg = NULL,
  tz = NULL
)

Arguments

projroot

string, project directory

logger_data_raw

string, path to the full RTS dataset

tags

data.frame, table containing all relevant information of tagged individuals

id_col

string, name of the column in tags data.frame containing the name (ID) of the tagged individual

start_col

string, name of the column in tags data.frame containing the date of the tagging (yy-mm-dd)

end_col

string, name of the column in tags data.frame containing the end of the transmitter lifetime (yy-mm-dd)

freq_col

string, name of the column in tags data.frame containing the frequency of the transmitter in kHz

dmin_col

string, name of the column in tags data.frame containing the min duration of the transmitter signal in seconds (10ms=0.01 sec)

dmax_col

string, name of the column in tags data.frame containing the max duration of the transmitter signal in seconds (10ms=0.01 sec)

stations

data.frame, with station coordinates, station name, receiver name and antenna orientation

s_col

string, name of the column in tags data.frame containing the name of each station

x_col

string, name of the column in tags data.frame containing the X Coordinates

y_col

string, name of the column in tags data.frame containing the Y Coordinates

r_col

string, name of the column in tags data.frame containing the name of each receiver

o_col

string, name of the column in tags data.frame containing the orientation of antennas

epsg

numeric, epsg code of the coordinate system of stations coordinates- will be transformed to latlon

tz

string, timezone of project

Author(s)

Jannis Gottwald

Examples


projroot<-paste0(getwd(),"/tRackIT_test_data/")
# data frame with id information
#tag_df <- data.frame(id = "woodpecker", freq = 150050, start = "2021-06-10", end = "2021-06-14", dmax = 0.025, dmin = 0.012)
# data frame with tRackIt station information
#stations <- data.frame(station = "station1", receiver = c(0, 1, 2, 3), orientation = c(0, 90, 180, 270), X = 8.677942, Y = 50.84420)
#test_project <- initProject(projroot = projroot, logger_data_raw = ".", tags = tag_df, id_col = "id", start_col = "start", end_col = "end", freq_col = "freq", dmin_col = "dmin", dmax_col = "dmax", stations = stations, s_col = "station", x_col = "X", y_col = "Y", r_col = "receiver", o_col = "orientation", epsg = 4326, tz = "CET")
#tst$path


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