Title: | Loads Data from the Executive Communications Dataset |
---|---|
Description: | A minimal package for downloading data from 'GitHub' repositories of the Executive Communications Database. |
Authors: | Joshua Allen [aut, cre, cph] , Ryan Carlin [ctb], Juan Gomez-Gómez-Cruces [ctb], Will Horne [aut, ctb], Jamie Lindh [ctb], Cecilia Martinez-Gallardo [ctb], Miles Massesy [ctb] |
Maintainer: | Joshua Allen <[email protected]> |
License: | CC BY 4.0 |
Version: | 1.1.1 |
Built: | 2025-01-12 06:27:31 UTC |
Source: | https://github.com/cranhaven/cranhaven.r-universe.dev |
This function clears the memoised cache of all functions memoised by ecdata
.
clear_cache()
clear_cache()
A success message after clearing the cache.
## Not run: clear_cache() ## End(Not run)
## Not run: clear_cache() ## End(Not run)
a data frame with 41 rows and 2 columns
Name of the country in the dataset
Name of the parquet files on GitHub
ecd_country_dictionary
ecd_country_dictionary
An object of class data.frame
with 45 rows and 7 columns.
The Executive Communications Dataset
name of a country in our dataset
date of statement
title of the statement
text of the statement
url of the statement
name of the file in the replication repo
ecd_data_dictionary
ecd_data_dictionary
An object of class tbl_df
(inherits from tbl
, data.frame
) with 13 rows and 2 columns.
The Executive Communications Dataset
opens and example web scraper in your text editor
example_scraper(scrapper_type = c("static", "dynamic"))
example_scraper(scrapper_type = c("static", "dynamic"))
scrapper_type |
calls the example scrapper scripts. Should be one of static or dynamic which matches the kind of scrapper you want to use |
an example webscrapper
#' ## Not run: library(ecdata) # get dynamic scrapper example_scrapper(scrapper_type = 'static') ## End(Not run)
#' ## Not run: library(ecdata) # get dynamic scrapper example_scrapper(scrapper_type = 'static') ## End(Not run)
Reading Executive Communications Dataset lazily
This function imports data from the ECD lazily meaning the data is out loaded out of memory
lazy_load_ecd( country = NULL, language = NULL, full_ecd = FALSE, ecd_version = "1.0.0" )
lazy_load_ecd( country = NULL, language = NULL, full_ecd = FALSE, ecd_version = "1.0.0" )
country |
a character vector with a country or countries in our dataset to download. |
language |
a character vector with a lanaguage or languages in our dataset to download. |
full_ecd |
to download the full Executive Communications Dataset set full_ecd to TRUE |
ecd_version |
a character of ecd versions. |
A tibble with the specified country/countries or language/languages
library(ecdata) ## load one country load_ecd(country = 'United States of America') ## displays data from the USA ## load multiple countries load_ecd(country = c('Turkey', 'Republic of South Korea', 'India')) ## displays data from Turkey, South Korea, and India # load full ecd load_ecd(full_ecd = TRUE)
library(ecdata) ## load one country load_ecd(country = 'United States of America') ## displays data from the USA ## load multiple countries load_ecd(country = c('Turkey', 'Republic of South Korea', 'India')) ## displays data from Turkey, South Korea, and India # load full ecd load_ecd(full_ecd = TRUE)
Reading Executive Communications Dataset
This function imports data from the ECD
load_ecd( country = NULL, language = NULL, full_ecd = FALSE, ecd_version = "1.0.0" )
load_ecd( country = NULL, language = NULL, full_ecd = FALSE, ecd_version = "1.0.0" )
country |
a character vector with a country or countries in our dataset to download. |
language |
a character vector with a lanaguage or languages in our dataset to download. |
full_ecd |
to download the full Executive Communications Dataset set full_ecd to TRUE |
ecd_version |
a character of ecd versions. |
A tibble with the specified country/countries or language/languages
library(ecdata) ## load one country load_ecd(country = 'United States of America') ## displays data from the USA ## load multiple countries load_ecd(country = c('Turkey', 'Republic of South Korea', 'India')) ## displays data from Turkey, South Korea, and India # load full ecd load_ecd(full_ecd = TRUE)
library(ecdata) ## load one country load_ecd(country = 'United States of America') ## displays data from the USA ## load multiple countries load_ecd(country = c('Turkey', 'Republic of South Korea', 'India')) ## displays data from Turkey, South Korea, and India # load full ecd load_ecd(full_ecd = TRUE)