amcat.upload.articles: Upload new articles to AmCAT

Description Usage Arguments

View source: R/amcatr.r

Description

Upload articles into a given project and article set, or into a new article set if the articleset argument is character All arguments headline, medium etc. should be either of the same length as text, or of length 1 All factor arguments will be converted to character using as.character For date, please provide either a string in ISO notatoin (i.e. "2010-12-31" or "2010-12-31T23:59:00") or a variable that can be converted to string using format(), e.g. Date, POSIXct or POSIXlt. The articles will be uploaded in batches of 100.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
amcat.upload.articles(
  conn,
  project,
  articleset,
  text,
  headline,
  date,
  medium,
  provenance = NULL,
  ...
)

Arguments

conn

the connection object from amcat.connect

project

the project to add the articles to

articleset

the article set id of an existing set, or the name of a new set to create

text

the text of the articles to upload

headline

the headlines of the articles to upload

medium

the medium of the articles to upload.

provenance

if articleset is character, an optional provenance string to store with the new set

...

and additional fields to upload, e.g. author, byline etc.


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