Description Usage Arguments Details Value See Also Examples
vemsort
finds and combines all VEMCO CSV files in a directory
1 |
directory |
String. Location of CSV data, defaults to current wd. |
clust |
A cluster object created by |
prog_bar |
Logical. Do you want a progress bar displayed? Will increase
evaluation time. Initiates |
creation_date |
Character date in a standard unambiguous format (e.g., YYYY-MM-DD). Will select only files created after this date. |
This function assumes that all necessary CSV files are within the specified directory or subdirectories within. All files must have the default headings offloaded by VEMCO products. These are, in order: Date and Time (UTC), Receiver, Transmitter, Transmitter Name, Transmitter Serial, Sensor Value, Sensor Unit, Station Name, Latitude, Longitude.
Output is a data frame containing all detections from
the directory's CSV files. Adds two columns: one containing local time of
the detections (as defined by Sys.timzone
) and one containing the
detection's CSV file of origin.
makeCluster
, parLapply
,
pblapply
1 2 3 4 5 6 7 8 9 10 11 | vemsort('C:/Users/mypcname/Documents/Vemco/Vue/ReceiverLogs')
# Select files created after Jan 1, 2015
vemsort('C:/Users/mypcname/Documents/Vemco/Vue/ReceiverLogs',
creation_date = '2015-01-01')
# Use parallel computation and a progress bar
cl <- parallel::makeCluster(parallel::detectCores() - 1)
vemsort('C:/Users/mypcname/Documents/Vemco/Vue/ReceiverLogs',
clust = cl, prog_bar = T)
parallel::stopCluster(cl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.