Description Usage Arguments Value
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.
1 2 3 4 5 6 7 8 9 | amcat.aggregate(
conn,
queries,
labels = queries,
sets,
axis1 = NULL,
axis2 = NULL,
...
)
|
conn |
the connection object from |
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. |
A data frame with hits per group
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.