Learn R Programming

ecoengine (version 1.3)

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 = 25)

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, 100)
ee_paginator(1:4, 100)
# This will return an error since there are only 4 pages per 100 observations
ee_paginator(1:5, 100)

Run the code above in your browser using DataLab