-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
62 lines (44 loc) · 1.22 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
output: rmarkdown::github_document
---
# elpresidente
## Description
Methods are provided that let you search and extract corpus elements
from 'The American Presidency Project' <http://www.presidency.ucsb.edu>.
## What's Inside The Tin
The following functions are implemented:
- `app_eo_list`: Retieve a data frame of metadata about Executive Orders issues in a given year
- `app_get_eo`: Retrieve metadata and full text of an executive order by APP id
- `app_get_inaugurals`: Retrieve metadata and full text for Presidential Inaugural Addresses
## Installation
```{r eval=FALSE}
devtools::install_github("hrbrmstr/elpresidente")
```
```{r message=FALSE, warning=FALSE, error=FALSE, include=FALSE}
options(width=120)
```
## Usage
```{r message=FALSE, warning=FALSE, error=FALSE}
library(elpresidente)
# current verison
packageVersion("elpresidente")
```
## Example
```{r message=FALSE, warning=FALSE, error=FALSE}
library(purrr)
library(tidyr)
library(dplyr)
```
```{r cache=TRUE}
app_eo_list(1826) %>%
mutate(eo_info = map(eo_id, app_get_eo)) %>%
unnest() %>%
glimpse()
app_eo_list(2014) %>%
mutate(eo_info = map(eo_id, app_get_eo)) %>%
unnest() %>%
glimpse()
```
```{r cache=TRUE}
app_get_inaugurals()
```