generate_date_block_indices: Generate date block indices.

Description Usage Arguments Value

View source: R/date.R

Description

Due to SolgarGIS restricting the size of any one request to 31 days, we must create a collection of indices such that a proper fetch range is created from result[i] + 1 to result[i].

Usage

1
generate_date_block_indices(total_number_of_days, days_per_request = 31)

Arguments

total_number_of_days

How many days are going to be requested.

days_per_request

The number of days per request. Defaults to max of 31.

Value

A collection of indices where result[i] + 1 represents the start date index and result[i] represents the end date index.


jmousseau/solargis documentation built on May 20, 2019, 1:54 p.m.