get_all: Extract All Elements When there are More than 5000

View source: R/get-data.R

get_allR Documentation

Extract All Elements When there are More than 5000

Description

This function uses the procedure outlined here under the section Retrieve all comments for a docket where number of comments is greater than 5000

Usage

get_all(url, num_elements, quiet = TRUE)

Arguments

url

that you want to obtain all data for, where there are more than 5000 elements. This url must be sorted by lastModifiedDate and documentId. For example, "https://api.regulations.gov/v4/comments?filter[commentOnId]=09000064846eebaf&page[size]=250&page[number]=1&sort=lastModifiedDate,documentId&api_key=DEMO_KEY"

num_elements

number of elements associated with the given url (totalElements)

quiet

logical; FALSE if you want the urls to be printed as this function iterates. Default value is TRUE, where the urls are not printed to the console.


q-w-a/regulationsgov documentation built on May 3, 2022, 8:23 p.m.