forked from wkdavis/prevederer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
63 lines (48 loc) · 2.26 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
63
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
fig.path = "README-"
)
```
# prevederer
<!-- badges: start -->
[](https://cran.r-project.org/package=prevederer)
[](https://travis-ci.org/wkdavis/prevederer)
[](https://ci.appveyor.com/project/wkdavis/prevederer)
[](https://codecov.io/gh/wkdavis/prevederer?branch=master)
[](http://www.r-pkg.org/pkg/prevederer)
[](https://www.repostatus.org/#active)
[](https://www.tidyverse.org/lifecycle/#maturing)

<!-- badges: end -->
## Overview
prevederer is an R package for accessing the Prevedere API. Access to the
Prevedere API requires an API key.
## Installation
```{r install-cran, eval = FALSE}
install.packages("prevederer")
```
### Development version
```{r install-dev, eval = FALSE}
devtools::install_github("wkdavis/prevederer")
```
## Usage
### Endpoints
- `indicator`: returns basic information about an indicator.
- `indicator_series`: returns the data for an indicator.
- `correlation`: calculates Pearson's r and other statistics at different offsets between an endogenous and exogenous indicator.
- `raw_model`: returns all information about a forecast model.
- `forecast`: returns historical fit and forecasted values of a forecast model.
- `workbench`: returns the indicators used in a workbench.
### Example
```{r example, eval = FALSE}
library(prevederer)
api_key = "xyz123"
provider = "provider_a"
provider_id = "a123"
prevedere_indicator_series(api_key, provider, provider_id)
```