read_alec | R Documentation |
This function can read the CEM and CKU data files.
read_alec(filename, ...)
filename |
the name of the file which the data are to be read from. It can be a CSV file or an XLSX file. |
... |
further arguments passed to read_csv or read_xlsx |
For CEM files, when the absolute x- and y- velocities are below 0 or above 200, all data are NA.
For CKU files, when the chlorophyll data is below 0 or above 400, the value is set to NA. When turbidity is below 0 or above 1000, the value is set to NA.
For both CEM and CKU files, When the temperature is below 0 or above 40, all data are NA.
A tibble containing the data. The contents of the tibble depend on the data file.
Returned variables
Date-time
Current speed (cm / s)
Current direction (radians)
East-West velocity (cm / s)
North-South velocity (cm / s)
Chlorophyll-a (μg / L)
Turbidity (FTU, Formazin Nephelometric Units)
Water temperature (^\circ
C)
## Not run:
fnames = dir("~/Lab_Data/kawatea/", full.names=TRUE, recursive=TRUE)
df = tibble(fnames = fnames)#'
df %>% filter(str_detect(fnames, "CEM")) %>% slice(1) %>% pull(fnames) %>% read_alec()
df %>% filter(str_detect(fnames, "CKU")) %>% slice(1) %>% pull(fnames) %>% read_alec()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.