View source: R/old_Data_Importing.R
log_file_parser | R Documentation |
log_file_parser
automatically ingests the logfiles created by Wildife
Acoustics SM3 and SM4, and Anabat Swift acoustic monitoring units. It
identifies, by site, whether a recorder was active on each night in the
monitoring period, creates a data frame of 'gaps' for use in plots, and
calcualtes uptime for each monitor.
log_file_parser(path, dataset_name, monitoring_start, monitoring_end)
path |
Character, a path to a parent directory containing all the relevant log files, following the filename convention described in Note. |
dataset_name |
Character, a brief and relevant reference phrase that will be used to name the text file. |
monitoring_start |
Character, the date the monitoring began (e.g. "2019-01-01") |
monitoring_end |
Character, the date the monitoring ceased (e.g. "2019-01-01") |
A series of dataframes summarising activity and uptimes from the files and facilitating further analyses and plots
To work as expected, log files must be renamed following the conventions outlined below!
Wildlife Acoustics: These files should be renamed so that each filename begins with the site name followed by a hyphen and any additional information (e.g. date) that is desired in the file name. For example: "site_1-2019.txt". The hyphen and all characters that follow it will be disregarded. The site name should match the site name assigned in GUANO metadata so that the log file data is appropriately matched with the acoustic data.
Anabat Swift: These fiels do not need to be renamed, but files for each site should be placed in their own sub-folder. The folder name should match the site name assinged in the GUANO metadata of the corrisponding .wav files so they can be matched.
Other Import Functions:
GUANO_loader()
,
GUANO_reader()
,
import_GUANO()
## Not run:
log_file_parser("C:/Folder/Folder/Log_Files_Folder", "Project_Name", "2019-01-01", "2019-12-31")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.