Learn R Programming

ecoengine (version 1.9.1)

ee_paginator: ecoengine paginator

Description

Takes a page range and total number of observations to return the right sequence of pages that need to be crawled.

Usage

ee_paginator(page, total_obs, page_size = 1000)

Arguments

page
requested page number or page range. Can also be "all"
total_obs
Total number of records available for any search query
page_size
Default is 25. Set higher if needed.

Examples

Run this code
ee_paginator(1, 100)
ee_paginator("all", 100)
ee_paginator(1:2, 1000)
ee_paginator(1:4, 3800)
# This will return an error since there are only 4 pages per 100 observations
ee_paginator(1:5, 10000)

Run the code above in your browser using DataLab