Format observations directly downloaded on PurpleAir API.
format_pa(raw, raw_tz = "UTC", raw_temp_unit = "F", raw_crs = 4326)
Arguments
- raw
a data.frame, data.table, sf with the raw observations
and columns "time_stamp", "latitude", "longitude", "temperature"
- raw_tz
the initial timezone, see PurpleAir API documentation
- raw_temp_unit
the initial temperature unit
- raw_crs
the initial coordinate reference system
Value
sf from hourly_temp class