View source: R/CleanWunderground.R
Filters out non-realistic low values downloaded using 'download_time_seq', creates UTC timestamps from which a 10min sequence is created. The following filters are applied:
Temperatures lower than -40 are unrealistic in the Netherlands and are excluded (set to NA)
Similarly temperatures above 45 are also excluded (set to NA)
In case there are more than 8 identical measurements in a row the value is set to NA
If the gap between the measurements is more than 1 hour values are not interpolated.
1 2 3 | clean_wunderground(Tunit = "Farenheid",
datafile = "C:/Users/marie/OneDrive/Documenten/uhi_max/inst/Wunderground/IUTRECHT23/daydata_rbind_2009-01-01_until_2018-11-27.txt",
fname = "C:/Users/marie/OneDrive/Documenten/uhi_max/inst/Wunderground/Filtered/IUTRECHT23_filtered.rds")
|
Tunit |
Temperature unit, since December 2018 the Wunderground data is in Farenheid. |
datafile |
Downloaded wunderground data |
fname |
Filename to write the filtered data |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.