View source: R/streamingclean.R
streamclean | R Documentation |
Cleaning raw streaming Dataflow, C6, Eureka-Manta, and YSI-Exo output
streamclean(yearmon, gps, dfmmin = NA, c6mmin = NA, eummin = NA, exommin = NA, tofile = FALSE, sep = ",", fdir = getOption("fdir"))
yearmon |
numeric designation of survey date formatted as yyyymm |
gps |
character dataset to use for GPS alignment of other data streams. Choice of "df", "eu", or "exo". |
dfmmin |
integer optional minimum df measurement frequency (# measurements/min) |
c6mmin |
integer optional minimum c6 measurement frequency |
eummin |
integer optional minimum eureka (manta) measurement frequency |
exommin |
integer optional minimum exo measurement frequency |
tofile |
logical save cleaned output to DF_FullDataSets? |
sep |
character optional predesignation of item seperation character in raw data files |
fdir |
character file path to local data directory |
Dataflow cleaning drops all minutes that have less measurements than "mmin". C6 data is interpolated to match Dataflow. Automatically compares salinity against conducitivty/temperature recalculated salinity and replaces if slope of fit is not close to 1. Bad DO columns must sometimes be removed manually. TODO - Add check the make sure that the year of the data (not just the filename) matches the year of yearmon
## Not run: #old dt <- streamclean(yearmon = 201505, gps = "df", dfmmin = 7, c6mmin = 10, tofile = FALSE) dt <- streamclean(yearmon = 201513, dfmmin = 7, c6mmin = 12, tofile = FALSE, exommin = 60, eummin = 12) #working dt <- streamclean(yearmon = 201512, gps = "df", c6mmin = 6, dfmmin = 7) dt <- streamclean(yearmon = 201601, gps = "eu", eummin = 12) dt <- streamclean(yearmon = 201603, gps = "exo", exommin = 40, c6mmin = 12) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.