amcat.aggregate: Conduct an aggregate query on amcat

Description Usage Arguments Value

View source: R/query.r

Description

This function is similar to using the 'show table' function in AmCAT. It allows you to specify a number of queries and get the number of hits per search term, per period, etc.

Usage

1
2
3
4
5
6
7
8
9
amcat.aggregate(
  conn,
  queries,
  labels = queries,
  sets,
  axis1 = NULL,
  axis2 = NULL,
  ...
)

Arguments

conn

the connection object from amcat.connect

queries

a vector of queries to run

labels

if given, labels corresponding to the queries

sets

one or more article set ids to query on

axis1

The first grouping (break/group by) variable, e.g. year, month, week, day, or medium

axis2

The second grouping (break/group by) variable, e.g. medium. Do not use a date interval here.

...

additional arguments to pass to the AmCAT API.

Value

A data frame with hits per group


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