aqer_data_clean: Function to format Air Quality e-Reporting (AQER)...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/aqer_data_clean.R

Description

Function to format Air Quality e-Reporting (AQER) observational data for easy use in the smonitor framework.

Usage

1
aqer_data_clean(df, drop_sites = FALSE)

Arguments

df

Tibble from aqer_read_csv.

drop_sites

Should bad sites be removed from the table?

Value

Tibble.

Author(s)

Stuart K. Grange

See Also

aqer_read_csv

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Example url
url <- "https://ereporting.blob.core.windows.net/downloadservice/GI_9_22755_2017_timeseries.csv"
data_aqer <- aqer_read_csv(url)

# Clean data
data_aqer_clean <- aqer_data_clean(data_aqer)

# Another example, this files has missing units
url <- "https://ereporting.blob.core.windows.net/downloadservice/AT_618_1437_2013_timeseries.csv"
data_aqer_clean_test <- aqer_read_csv(url) %>% 
  aqer_data_clean()

skgrange/aqerimportr documentation built on Aug. 10, 2021, 11:42 p.m.