If multiple stations are given, data are summarised for each year by station,
which include vapour pressure and relative humidity elements calculated from
existing data in GSOD. Else, a single station is tidied and a data
frame is returned.
All missing values in resulting files are represented as NA
regardless
of which field they occur in.
Only station files in the original “csv” file format are supported by
this function. If you have downloaded the full annual (“YYYY.tar.gz”)
file you will need to extract the individual station files from the tar file
first to use this function.
Note that reformat_GSOD()
will attempt to reformat any “.csv”
files found in the dsn
that you provide. If there are non-GSOD
files present this will lead to errors.
For a complete list of the fields and description of the contents and units,
please refer to Appendix 1 in the GSODR vignette,
vignette("GSODR", package = "GSODR")
.