amcat.getpages: Get and rbind pages from the AmCAT API

Description Usage Arguments Value

View source: R/amcatr.r

Description

Get and rbind pages from the AmCAT API

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
amcat.getpages(
  conn,
  path,
  format = NULL,
  page = 1,
  page_size = 1000,
  filters = NULL,
  post = FALSE,
  post_options = list(),
  max_page = NULL,
  rbind_results = format != "json",
  verbose = TRUE
)

Arguments

conn

the connection object from amcat.connect

path

the path of the url to retrieve (using the host from conn)

page

the page number to start retrieving

page_size

the number of rows per page

filters

a named vector of filters, e.g. c(project=2, articleset=3)

post

use HTTP POST instead of GET

max_page

the page number to stop retrieving at, if given

Value

dataframe


amcat/amcat-r documentation built on Dec. 26, 2021, 3:12 a.m.