Learn R Programming

locaR (version 0.1.2)

surveyPaths: Get paths for standardized survey workflow.

Description

Function that takes arguments of a base folder and a project name, date, time, and run, and returns the appropriate filepaths for a standardized survey workflow.

Usage

surveyPaths(folder, projectName, date, time, run)

Value

Named vector of paths to surveyFolder, runFolder, specFolder, locFolder, detectionsFile, channelsFile, and settingsFile.

Arguments

folder

Character. Path to the directory where the survey is to be created.

projectName

Character. A string specifying the name of a project.

date

Numeric. Eight digit number representing a date in the format YYYYMMDD.

time

Numeric. Five or six digit number representing the start time of a recording session (90000 = 09:00:00, and 160000 = 16:00:00).

run

Numeric. Within each survey, start with run = 1, then count upwards. So, run 2 would be used to re-localize sounds that were poorly localized in run 1, etc. Running them again with slightly different settings (e.g. start/end times or low/high frequencies) can improve results.

Examples

Run this code
    surveyPaths(folder = tempdir(), projectName = 'Ex', date = '20200617', time = '090000', run = 1)

Run the code above in your browser using DataLab