mc_read_wide {myClim} | R Documentation |
Reading data from wide data.frame
Description
This is universal function designed to read time-series and values from wide data.frame to myClim object. Useful for data not coming from supported microclimatic loggers. E.g. meteorological station data.
Usage
mc_read_wide(
data_table,
sensor_id = mc_const_SENSOR_real,
sensor_name = NULL,
clean = TRUE,
silent = FALSE
)
Arguments
data_table |
data.frame with first column of POSIXct time format UTC timezone, followed by columns with (micro)climatic records. See details. Columns:
|
sensor_id |
define the sensor type, one of |
sensor_name |
custom name of sensor; if NULL (default) than |
clean |
if TRUE, then mc_prep_clean is called automatically while reading (default TRUE) |
silent |
if TRUE, then any information is printed in console (default FALSE) |
Details
The first column of input data.frame must be datetime column in POSIXct time format UTC timezone.
Following columns represents localities. Column names are the localities names.
All values in wide data.frame represents the same sensor type, e.g. air temperature. If you wish to
read multiple sensors use mc_read_long or use mc_read_wide multiple times separately
for each sensor type and that merge myClim objects with mc_prep_merge
By default data are cleaned with function mc_prep_clean()
. See function description. It detects
holes in time-series, duplicated records or records in wrong order.
Value
myClim object in Raw-format