View source: R/adcp_read_txt.R
adcp_read_txt | R Documentation |
Read raw ADCP txt file into R and format. Label each row with the appropriate variable name (i.e., "SensorDepth", "WaterSpeed", or "WaterDirection").
adcp_read_txt(path, file_name = NULL, rm_dups = TRUE)
path |
Path to the txt file (including ".txt" extension) or to the folder where the txt file is saved. |
file_name |
Required if |
rm_dups |
Logical argument indicating whether to remove duplicate rows.
Default is |
The timestamp_ns
column is in the timezone of the deployment
date (e.g., "AST" if deployed in November to March and "DST" if deployed in
March to November). The timestamp_ns
does NOT account for changes in
daylight savings time. Here, the timestamp_ns
is assigned a timezone
of "UTC" to avoid NA
values during the beginning of daylight savings
time (e.g., 2019-03-10 02:30:00 is NOT a valid time for the
"America/Halifax" timezone). This timestamp_ns
can be converted to
true UTC using adcp_correct_timestamp()
.
A warning will be printed if duplicate timestamp_ns
are detected.
Returns a data frame of the data with a single header row and each row labelled as "SensorDepth", "WaterSpeed", or "WaterDirection".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.