Clarity_getOpenIndividual | R Documentation |
Sends a request to the Clarity API endpoint for Open Data.
When format = "USFS2"
, two additional fields are returned in the
"meta" dataframe: calibrationId
and calibrationCategory
.
Measurement data from – Drill down on one open datasource
Measurements returned – Individual values for last 3 days
PM2.5 Mass Concentration – Individual sample
Clarity_getOpenIndividual(
api_key = NULL,
datasourceId = NULL,
format = c("USFS2", "USFS"),
baseUrl = "https://clarity-data-api.clarity.io/v1/open/datasource-measurement"
)
api_key |
Clarity API READ Key. If |
datasourceId |
Clarity sensor identifier. |
format |
Customized output format ("USFS2", "USFS"). |
baseUrl |
URL endpoint. |
List containing five data frames: meta
, pm2.5_QCFlag
,
pm2.5
, nowcast_QCFlag
and nowcast
.
# Fail gracefully if any resources are not available
try({
library(AirSensor2)
Clarity_getOpenIndividual(
api_key = Clarity_API_READ_KEY,
datasourceId = "DAABL1560",
format = "USFS2"
)
}, silent = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.