sta_iterate: Iterator

Description Usage Arguments Value

View source: R/iterator.R

Description

Given an STA call, response document, and parsing function, will detect the total entity count and default $skip value. It will use these values to iterate through the paginated response document, and collate together the resulting responses according to the passed function

Usage

1
sta_iterate(call, response, fun)

Arguments

call

character URL of STA call.

fun

any function that parses STA responses into R data structures that can be row-binded. An example is sta_getLocationsCall()

resonse

json document corresponding to the call

Value

a collation of objects created by fun


internetofwater/sta4R documentation built on Dec. 4, 2020, 3:08 a.m.