View source: R/ProcessSettings.R
processSettings | R Documentation |
processSettings
reads information from a settings file (csv) and
combines them into a list for subsequent localization.
processSettings(settingsFile, settings, getFilepaths = FALSE, types = "wav")
settingsFile |
Filepath to the settings file (csv). |
settings |
data.frame created either by reading a settings file (csv) or
using the |
getFilepaths |
Logical, indicating whether to add filepath information
using |
types |
Character. If getFilepaths is TRUE, which types of files to look for ('wav' or 'mp3'). |
A list with information needed for sound localization, including microphone coordinates, the existing detections, channels to use for each recording unit, and information specifying the size and resolution of the grid within which to localize sound sources.
#Read example data settings <- read.csv(system.file('extdata', 'Ex_20200617_090000_Settings.csv', package = 'locaR'), stringsAsFactors = FALSE) #Over-write default values for SiteWavsFolder, CoordinatesFile, and ChannelsFile settings$Value[settings$Setting == 'SiteWavsFolder'] <- system.file('extdata', package = 'locaR') settings$Value[settings$Setting == 'CoordinatesFile'] <- system.file('extdata', 'Vignette_Coordinates.csv', package = 'locaR') settings$Value[settings$Setting == 'ChannelsFile'] <- system.file('extdata', 'Vignette_Channels.csv', package = 'locaR') #Run processSettings() function st <- processSettings(settings = settings, getFilepaths = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.