Different types of input data
Actel requires that you organise your input data in a specific fashion. Critically, you should have a file named biometrics.csv, one named spatial.csv, and one named deployments.csv (we will look into the file contents in detail soon). Finally, you also need a detections directory, containing all your detection files in .csv format.
To create a blank workspace ready to be used, run blankWorkspace()
, and a template will be generated automatically in an "actel_workspace" directory. If you would like to, you can change the name of the target directory by using the argument dir
. Remember to delete the example rows before including your data!
You can run actel analyses using R objects as an input, rather than input files. Read more about it in this dedicated page.
Covered in this page:
Biometrics file
Your biometrics file should look similar to this:
Release.date | Signal | Sensor.unit | Length.mm | Weight.g | Group | Release.site | ... |
---|---|---|---|---|---|---|---|
2018-02-01 10:05:00 | 501 | T | 150 | 40 | Wild | Site A | ... |
2018-02-01 10:15:00 | 502|503 | T|D | 160 | 60 | Hatchery | Site A | ... |
2018-02-01 10:15:00 | 504|505|506 | T|D|A | 170 | 50 | Wild | Site B | ... |
Although the column order is not important, it is essential that this table contains two columns:
Release.date: Corresponds to the date and time when the animal was released, and must be typed in yyyy-mm-dd hh:mm:ss format. Note that the timestamps must be in the local time zone of the study area, which you will later supply in the tz
argument.
Signal: Corresponds to the code emitted by your tags. If you are unsure as to what signals are, you should ask the tag manufacturer more about the differences between code spaces and signals.
If you do not include a "Code.space" column, actel will pick the code space that appears in the detections. If you want to be really sure that you are really picking your transmitter (i.e. a given signal in a given code space), make sure to include the code space as well.
Code spaces may have different names for different manufacturers. Currently, actel will convert the following name spaces automatically, unless the preload()
function is being used: "A69-1008" to "R256", "A69-1206" to "R94K", "A69-1105" to "S256" and "A69-1303" to "R64K". To deactivate this automatic conversion, set options(actel.auto.convert.codespaces = FALSE)
.
The Group and Release.site columns are also important but, if you only have one group or one release site, actel can generate these columns for you. If this happens, you will receive a message:
M: No Release site has been indicated in the biometrics file. Creating a 'Release.site' column to avoid script failure. Filling with 'unspecified'. M: No 'Group' column found in the biometrics file. Assigning all animals to group 'All'.
You can append as many columns as you want to biometrics.csv. Importantly, if the biometrics have columns with keywords such as length, weight or mass, graphics showing the distribution of these parameters per animal group will be drawn for you in the report.