This repository has been archived by the owner on Dec 30, 2023. It is now read-only.
forked from joachim-gassen/ExPanDaR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
101 lines (71 loc) · 4.18 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
---
output: github_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, fig.align = "center", table.align = "center", warnings = FALSE)
library(ExPanDaR)
library(knitr)
```
# ExPanDaR: Explore Panel Data Interactively <img src="logo.png" align="right" />
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
[![Travis-CI Build Status](https://travis-ci.org/joachim-gassen/ExPanDaR.svg?branch=master)](https://travis-ci.org/joachim-gassen/ExPanDaR)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/ExPanDaR)](https://cran.r-project.org/package=ExPanDaR)
[![CRAN\_Download\_Badge](http://cranlogs.r-pkg.org/badges/grand-total/ExPanDaR)](https://cran.r-project.org/package=ExPanDaR)
## Overview
You are visiting the github repository of the ExPanDaR (Explore Panel Data with R) package. ExPanDaR provides the code base for the ExPanD web app. ExPanD is a shiny based app supporting interactive exploratory data analysis.
ExPanD has two purposes:
- Enable users to assess the robustness of empirical evidence without providing them with access to the underlying data.
- Provide a toolbox for researchers to explore panel data on the fly, now also
allowing them to download R notebook code that reflects their analysis.
While I hope that ExPanD will be particularly helpful in the academic review, publication and replication process I also think that it is convenient for typical exploratory data analysis workflows. In addition, it has already proven to be helpful in the classroom.
This is what ExPanD looks like:
```{r, out.width = "90%", fig.align="center", fig.border = "none", echo=FALSE}
knitr::include_graphics("vignettes/figures/ExPanD_simple_03.jpg")
```
If you are interested to see what ExPanD has to offer without diving into R, click [here](https://jgassen.shinyapps.io/expand_wb/) to explore an instance of ExPanD that hosts World Bank data or click
[here](https://jgassen.shinyapps.io/expand_r3/) for a financial accounting and stock returns dataset of U.S. firms.
If you want to analyze your own panel data instead, you can also access a variant of ExPanD app [here](https://jgassen.shinyapps.io/expand/) that allows user-side data uploads. No worries: Your data won't be stored on the server and will get erased from memory as soon as you close the web connection.
## Installation
If you are in for the full treat and want to test ExPanD from within R, run the following
in your R session to install the ExPanDaR package from CRAN.
```{r, eval=FALSE}
install.packages("ExPanDaR")
library(ExPanDaR)
````
Or, if you want to install the current development version from Github
that includes the new notebook export option:
```{r, eval=FALSE}
if (!require("devtools")) {
install.packages("devtools")
}
devtools::install_github("joachim-gassen/ExPanDaR")
library(ExPanDaR)
````
## Basic Usage
You can either start ExPanD without arguments so that it starts with a file upload dialog...
```{r, eval=FALSE}
ExPanD()
````
...or start with one of the two example datasets that come with the package.
Please note: The last parameter (`export_nb_option`) is currently only supported
by the development version of the package available on Github and has to be
omitted when you use the CRAN version.
```{r, eval=FALSE}
ExPanD(df = worldbank,
df_def = worldbank_data_def,
var_def = worldbank_var_def,
df_name = "World Bank Data",
config_list = ExPanD_config_worldbank,
export_nb_option = TRUE)
ExPanD(df = russell_3000,
df_def = russell_3000_data_def,
df_name = "Russell 3000",
config_list = ExPanD_config_russell_3000,
export_nb_option = TRUE)
````
Some additional information on how to use ExPanD can be found in the code file `ExPanDaR_examples.R` in the root directory.
## Further Information
For further information, please refer to the articles and function call references of the package documentation, available
[here](https://joachim-gassen.github.io/ExPanDaR) for the CRAN version and
[here](https://joachim-gassen.github.io/ExPanDaR/dev) for the current development version.
Enjoy!