Function that looks up local weather and all meter data for the passed zip code (once) and caches them and then looks up all meter ids in the passed zip code calls iterator.iterateMeters with those meter ids and the pre-loaded weather and meter data. This runs faster than calling ids individually, which load individual meter data and similar weather data over and over.
1 2 | iterator.runZip(zip, custFn, cacheResults = F, ctx = new.env(),
as_df = FALSE, ...)
|
zip |
The zip code to use for the weather, meter ids, and meter data lookups |
custFn |
The feature function(s) to call on |
cacheResults |
A boolean flag that indicates whether results should be cached as RData. If true, the cached data will be looked up prior to feature extraction to bypass running features for the given zip code while returning the cached results. This can prevent duplicate processing and allow an interrupted batch process to resume processing where it left off. The cache directory is 'getwd()' by default, but can be overridden using 'ctx$resultsCache'. |
ctx |
The ctx environment that configures the feature run. |
as_df |
Boolean (defaulted to FALSE) that determines whether |
... |
Arguments to be passed into the feature function(s). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.