| tidy_Hanwell | R Documentation |
This function tidies Hanwell Environmental Monitoring System (EMS) data from either Excel sheets or CSV files.
- Default mode (MinMax = FALSE): Reads raw date, temperature, and humidity data. - Min-Max mode (MinMax = TRUE): Under development to read min-max average data (CSV only).
tidy_Hanwell(
EMS_datapath,
Site = "Site",
MinMax = FALSE,
sheet = "Hanwell",
...
)
EMS_datapath |
Character string specifying the file path to the Hanwell EMS data file. |
Site |
Character string specifying site name to add as a column. Default is "Site". |
MinMax |
Logical flag; if TRUE, reads Min-Max format, otherwise reads raw data. Default is FALSE. |
sheet |
Optional, Excel sheet name for reading Excel files. The default is "Hanwell" |
... |
Additional arguments passed to |
A tibble containing tidied Hanwell EMS data, with columns including:
Character, site name as specified by Site argument.
Character, sensor identifier extracted from the file or metadata.
POSIXct datetime of the measurement.
Numeric temperature measurement in °C (average for MinMax).
Numeric relative humidity measurement in % (average for MinMax).
(Only for MinMax reports) Numeric min/max values of Temp and RH.
# Example usage: hanwell_data <- tidy_Hanwell("path/to/your/hanwell_data.csv")
# mydata file
filepath <- data_file_path("mydata.xlsx")
tidy_Hanwell(filepath, sheet = "Hanwell", Site = "London") |> head()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.