View source: R/read.dendrometer.R
| read.dendrometer | R Documentation |
Reads dendrometer data from .csv, .txt, .tsv, or .xlsx files,
automatically parsing the datetime information and converting it to
%Y-%m-%d %H:%M:%S in the requested timezone.
Supports:
automatic delimiter detection for text files,
real decimal-mark auto-detection for text files,
Excel serial date support (1900 / 1904 systems),
separate date_col + time_col,
optional import report output,
optional time-resolution diagnostics.
read.dendrometer(
file,
sep = NULL,
dec = NULL,
datetime_col = 1,
date_col = NULL,
time_col = NULL,
tz = "UTC",
sheet = NULL,
range = NULL,
na = c("", "NA", "NaN", "nan", "null", "NULL", "-9999"),
assume_midnight = TRUE,
orders = NULL,
excel_dates = c("auto", "none", "1900", "1904"),
drop_dup_times = TRUE,
detect_resolution = FALSE,
return_report = FALSE,
quiet = TRUE
)
file |
Path to file ( |
sep |
Optional delimiter for text files. If |
dec |
Optional decimal mark for text files. If |
datetime_col |
Integer or name of the datetime column (default |
date_col |
Optional integer or name of a date column. |
time_col |
Optional integer or name of a time column. Used together with
|
tz |
Time zone for parsed datetimes (default |
sheet |
Excel sheet name or index (for |
range |
Excel cell range (optional). |
na |
Character vector of strings to treat as NA. |
assume_midnight |
Logical; if |
orders |
Optional vector of lubridate orders to try. If |
excel_dates |
Character. One of |
drop_dup_times |
Logical; if |
detect_resolution |
Logical; if |
return_report |
Logical; if |
quiet |
Logical; if |
If return_report = FALSE, a tibble with a POSIXct first column and the
remaining data columns unchanged.
If return_report = TRUE, a list with:
$dataThe imported tibble.
$reportA structured import report.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.