View source: R/folderIndices.R
folderIndices | R Documentation |
Return the indices of the folder structure to identify information needed to
populate recordTable
's or recordTableIndividual
's arguments
folderIndices(inDir)
inDir |
character. Directory filepath containing 'Station' directories.
It must either contain images in species subdirectories (e.g.
"inDir/StationA/SpeciesA") or images with species metadata tags instead of
'Species' directories (e.g. "inDir/StationA"). Only include path up to
root/parent folder in which the 'Station'/'Site' subfolders are located
(e.g. "C:/Documents/CamProject" ...). 'Station' folders would be next in the
file path but are not included when defining |
Depending on your set up, you may have multiple information stored in your
folder structure. camtrapRdeluze
can now extract information from
multiple folders (i.e. not only Station and Species), but it needs to know
their position in the directory path when using recordTable
or
recordTableIndividual
. This function aims to facilitate the position
of the folders for the following arguments:
stationIDposition
speciesPosition
cameraIDposition
If there are multiple paths within inDir
- as it is likely - the
function will look for the (first) longest and use that as an example.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.