process_elg | R Documentation |
Function takes in a filepath to a folder containing the cruise elg files, reads them in, combines them into one data object and then exports to a comma-separated-file and an odv text file.
process_elg(
elg_folder,
cruiseID = NULL,
csv_folder = "output/csv",
csv_filename = "elg.csv",
odv_folder = "output/odv/elg",
odv_filename = "elg.txt",
add_cruiseID = TRUE,
average_window = 60,
...
)
elg_folder |
filepath to the folder containg elg files |
cruiseID |
Optional string specifying cruise ID (i.e. "S301") |
csv_folder |
The directory path to output the csv file. Set to NULL for no csv output. |
csv_filename |
The csv filename to output the data |
odv_folder |
The directory path to output the odv file. Set to NULL for no odv output. |
odv_filename |
The odv .txt filename to output the data |
average_window |
the averaging window in minutes for the exported file. Set to NULL for no averaging. Default is 60 minutes. |
add_cruise_ID |
If cruiseID is set, logical to specify whether cruiseID should be appended to beginning of filenames for csv and odv output |
Note that the elg folder doesn not have to solely contain elg files, the reading function will find all the elg files amoungst the other files exported by SCS
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.