amcat.getarticlemeta: Get article metadata from AmCAT

Description Usage Arguments Value

Description

Uses the amcat.getobjects function to retrieve article metadata, and applies some additional postprocessing, e.g. to convert the data to Date objects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
amcat.getarticlemeta(
  conn,
  project,
  articleset = NULL,
  articles = NULL,
  uuid = NULL,
  columns = c("date", "medium"),
  time = F,
  dateparts = F,
  page_size = 10000
)

Arguments

conn

the connection object from amcat.connect

project

the project of a set to retrieve metadata from

articleset

the article set id to retrieve

columns

the names of columns to retrieve, e.g. date, medium, text, headline

time

if true, parse the date as POSIXct datetime instead of Date

dateparts

if true, add date parts (year, month, week)

medium_names

if true, retrieve medium names and turn medium column into a factor

Value

A dataframe containing the articles and the selected columns


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