-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdata.R
100 lines (97 loc) · 2.92 KB
/
data.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#' @encoding UTF-8
#' @title Example Purple Air Synoptic dataset
#' @format A tibble with 71 rows and 59 columns of data.
#' @description The \code{example_pas} dataset provides a quickly loadable
#' version of a \emph{pa_synoptic} object for practicing and code examples.
#' This dataset was generated on 2023-03-15 by running:
#'
#' \preformatted{
#' library(AirSensor)
#'
#' initializeMazamaSpatialUtils()
#'
#' example_pas <-
#' pas_createNew(
#' api_key = PURPLE_AIR_API_READ_KEY,
#' countryCodes = "US",
#' stateCodes = "CA",
#' show_only = SCAQMD_SENSOR_INDICES,
#' lookbackDays = 1,
#' location_type = 0
#' )
#'
#' save(example_pas, file = "data/example_pas.rda")
#' }
"example_pas"
#' @encoding UTF-8
#' @title Example PurpleAir Timeseries dataset
#' @format An S3 object composed of "meta" and "data" data.
#' @description The \code{example_pat} dataset provides a quickly loadable version of
#' a \emph{pa_timeseries} object for practicing and code examples.
#' This dataset was was generated on 2023-03-16 by running:
#'
#' \preformatted{
#' library(AirSensor)
#'
#' initializeMazamaSpatialUtils()
#'
#' example_pat <-
#' pat_createNew(
#' api_key = PURPLE_AIR_API_READ_KEY,
#' pas = example_pas,
#' sensor_index = "3515",
#' startdate = "2022-07-01",
#' enddate = "2022-07-08",
#' timezone = "UTC",
#' verbose = TRUE
#' )
#'
#' save(example_pat, file = "data/example_pat.rda")
#' }
"example_pat"
#' @encoding UTF-8
#' @title Example AirSensor Timeseries dataset
#' @format An S3 object composed of "meta" and "data" data.
#' @description The \code{example_sensor} dataset provides a quickly loadable version of
#' an \emph{airsensor} object for practicing and code examples.
#' This dataset was was generated on 2023-03-16 by running:
#'
#' \preformatted{
#' library(AirSensor)
#'
#' example_sensor <-
#' pat_createNew(
#' api_key = PURPLE_AIR_API_READ_KEY,
#' pas = example_pas,
#' sensor_index = "9392",
#' startdate = "2022-07-01",
#' enddate = "2022-07-08",
#' timezone = "UTC",
#' verbose = TRUE
#' ) %>%
#' pat_createAirSensor(
#' parameter = 'pm25',
#' FUN = AirSensor::PurpleAirQC_hourly_AB_01
#' )
#'
#' save(example_sensor, file = "data/example_sensor.rda")
#' }
"example_sensor"
#' @encoding UTF-8
#' @title Example AirSensor Timeseries dataset
#' @format An S3 object composed of "meta" and "data" data.
#' @description The \code{example_sensor_scaqmd} dataset provides a quickly
#' loadable version of a multi-sensor \emph{airsensor} object for practicing and
#' code examples. This dataset was was generated on 2020-09-15 by running:
#'
#' \preformatted{
#' library(AirSensor)
#'
#' setArchiveBaseUrl("https://airsensor.aqmd.gov/PurpleAir/v1")
#'
#' example_sensor_scaqmd <-
#' sensor_load("scaqmd", startdate = 20190701, enddate = 20190708)
#'
#' save(example_sensor_scaqmd, file = "data/example_sensor_scaqmd.rda")
#' }
"example_sensor_scaqmd"