mc_reshape_wide {myClim} | R Documentation |
Export values to wide table
Description
This function converts myClim object to the R data.frame with values of sensor in wide format.
Usage
mc_reshape_wide(data, localities = NULL, sensors = NULL, use_utc = TRUE)
Arguments
data |
myClim object see myClim-package |
localities |
names of localities; if NULL then all (default NULL) |
sensors |
names of sensors; if NULL then all (default NULL) see |
use_utc |
if FALSE, then the time shift from In the Agg-format myClim object |
Details
First column of the output data.frame is datetime followed by the columns for every sensor. Name of the column is in format:
localityid_loggerid_serialnumber_sensorname for Raw-format
localityid_sensorname for Agg-format
The less complex wide table is returned when exporting single sensor ascross localities.
Value
data.frame with columns:
datetime
locality1_sensor1
...
...
localityn_sensorn
Examples
example_tms_wideformat <- mc_reshape_wide(mc_data_example_raw, c("A6W79", "A2E32"),
c("TMS_T1", "TMS_T2"))