-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathREADME.Rmd
89 lines (60 loc) · 3.53 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
---
output:
md_document:
variant: markdown_github
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, echo=FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
![](images/logo.png)
GREA
==============
[![Build Status](https://travis-ci.org/Stan125/GREA.svg?branch=master)](https://travis-ci.org/Stan125/GREA)
GREA (Gotta Read 'Em All) is an RStudio Add-In assisting to read all popular file formats into R through R base functions and [rio](https://cran.r-project.org/web/packages/rio/README.html). In the beginning, the user selects a file on his/her computer. After some optional adjustments (which are done interactively), the proper function to read the file is pasted into the console, with an object name that can be specified by the user. Supported file formats include Stata (.dta), SPSS (.sav), Matlab (.mat), Excel (.xls, .xlsx) and various text/delimited-formats (.raw, .csv, .txt, .asc, .dat, etc.).
Click [here](http://imgur.com/a/a9M1p) for an interactive comic on why GREA is important.
### News
16.05.2016
* First version of GREA was wrapped up into a package
22.05.2016
* `shiny::fileInput` dependency replaced with `fileChoose()` function
26.05.2016
* Big structural revamp: Add-In now pastes the proper function to parse the file right into the console!
18.06.2016
* Now relies heavily on [rio](https://cran.r-project.org/web/packages/rio/README.html), therefore supporting way more filetypes.
21.07.2016
* New Advanced Options Tab: Adds the ability to
* Specify own NA values
* Specify own column separators
* Skip rows when reading data
* Encode text-delimited files
### Installation
To install the Add-In, run the following code:
```{r installation, eval=FALSE}
devtools::install_github("Stan125/GREA")
```
### Usage
#### 0. Starting the Add-In
Calling the Add-In is simple: just click on the Add-In Tab and select 'Gotta Read Em All'. The Add-In itself quickly pops up and you are good to go!
#### 1. Selecting the dataset
Once the Add-In is started up, press the "Select File" button to select a file on your computer. Then, you can specify a name for your dataset (if blank, the filename, without extension, is used). Once the file is loaded into the Add-In, you may see additional options for parsing the file. Ignore those for now and head right to the "Preview" tab.
<p align="center">
<img src="images/step1.png" width="400" height="300" />
<p>
#### 2. Looking at the preview
The preview tab shows a preview of what your dataframe would look like if you parsed it with the current settings. If something looks odd (e.g. your column names fell into the first row of the dataset), head back to the first tab. If everything is right, still head back to the first tab.
<p align="center">
<img src="images/step2.png" width="400" height="297" />
<p>
#### 3. Adjusting stuff
If the preview of your dataframe looked off, you now have the chance to adjust some parameters (e.g. Sheet Index for Excel files, or separator for delimited files). Adjust them so your preview looks exactly like you want them to. When you are finished (and have typed in a name for your newly aquired dataset), press "done". Afterwards, the function to read your dataset is pasted into your console. Boom! You're good to go.
<p align="center">
<img src="images/step3.png" width="550" height="97" />
<p>
### Code of Conduct
Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md).
By participating in this project you agree to abide by its terms.