folderIndices: Folder indices

View source: R/folderIndices.R

folderIndicesR Documentation

Folder indices

Description

Return the indices of the folder structure to identify information needed to populate recordTable's or recordTableIndividual's arguments

Usage

folderIndices(inDir)

Arguments

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 inDir.

Details

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.


carlopacioni/camtrapRdeluxe documentation built on Nov. 29, 2023, 3:37 a.m.