feed_get_url: Get the URL for an AEC election feed directory

Description Usage Arguments Details Value Examples

View source: R/download.R

Description

Specify the parameters of the election feed you would like to access, and this function will provide the URL for the corresponding FTP site and directory.

Usage

1
2
3
4
5
6
feed_get_url(
  id,
  granularity = c("Detailed", "Standard"),
  verbosity = c("Light", "Eml", "LightProgress", "Preload", "Verbose"),
  archived = FALSE
)

Arguments

id

The unique numeric ID of the electoral event

granularity

Standard or Detailed granularity

verbosity

Eml, Light, LightProgress, Preload or Verbose

archived

FALSE for a live election feed, TRUE for a past election

Details

See the AEC Media Feed User Guide for details of the contents of each feed type and the available combinations of granularity and verbosity.

Value

A string containing the URL

Examples

1
2
feed_get_url(25881, "Detailed", "Preload", TRUE)
feed_get_url(25881, "Detailed", "Light", TRUE)

tobiasziegler/aecfeedr documentation built on April 9, 2021, 10:45 a.m.