Skip to content

Commit

Permalink
more polish
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Oct 5, 2018
1 parent 203bb7c commit f81bdfc
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@
Getting-Started-in-R_files
Getting-Started-in-R_cache
Getting-Started-in-R.zip
local
3 changes: 3 additions & 0 deletions Contributors.md
Expand Up @@ -3,6 +3,7 @@ Contributors

## Authors
- [Saghir Bashir](https://github.com/saghirb)
- [Dirk Eddelbuettel](http://dirk.eddelbuettel.com)

## Reviewers
- Cecile Dubois
Expand All @@ -11,6 +12,8 @@ Contributors
- Inês Leitão
- [Isabel Lafaia](https://github.com/IsabelLafaia)
- [Hugo Ferreira](https://twitter.com/hu_daa)
- Jordi Tarrés-Call
- [Brodie Gaslam](https://github.com/brodieG)

## List of Contributors
- ...
Expand Down
14 changes: 7 additions & 7 deletions Getting-Started-in-R.Rmd
Expand Up @@ -130,7 +130,7 @@ starts with information about the version number, license and contributors.
The last line is a standard prompt "`>`" that indicates R is ready and expecting
instructions to do something.
```{r RStudioScreenshot, out.width="3.4in", fig.show='hold', fig.cap="\\label{fig:rstudio}RStudio Screenshot with Console on the left and Help tab in the bottom right", echo=FALSE}
include_graphics("RStudio-Screenshot.png")
include_graphics("figures/RStudio-Screenshot.png")
```

## Quitting R & RStudio
Expand Down Expand Up @@ -473,12 +473,12 @@ Investigate the *effect of diet on the weight over time*.

# Importing The Data

```{r writeCW, echo=FALSE, message=FALSE, warning=FALSE, eval=FALSE}
ChickWeight %>%
select(Chick, Diet, Time, weight) %>%
arrange(Chick, Diet, Time) %>%
write_csv("ChickWeight.csv")
#CW <- read_csv("ChickWeight.csv")
```{r writeCW, echo=FALSE, message=FALSE, warning=FALSE, eval=TRUE}
## data.table already loaded above
CW <- data.table(ChickWeight)
if (!file.exists("ChickWeight.csv"))
fwrite(CW[, .(Chick, Diet, Time, weight)],
file="ChickWeight.csv")
```

First we will import the data from a file called `ChickWeight.csv` using the `fread()`
Expand Down
Binary file modified Getting-Started-in-R.pdf
Binary file not shown.
42 changes: 28 additions & 14 deletions README.md
@@ -1,38 +1,52 @@
# Getting Started in R
## Getting Started in R

**An 8 page PDF "Getting Started in R" Guide.**
An eight-page pdf guide for "Getting Started in R".

**Objective**
### Objective

To create a short guide that gives a quick overview and introduction to R and
the `tidyverse` package.
To create a short guide that gives a quick overview and introduction to R.

**How?**
### How?

* Using a practical approach of showing how to do things immediately using realistic
examples and a real life dataset.
* Avoiding technical details where possible.
* Making it fun and interesting.

**For whom?**
### For whom?

* Beginners.
* Data scientists, statisticians, programmers, ... who want to get a flavour of R.
* Those who want a quick refresher guide to R.
* The curious.

**Outcome**
### Outcome

* After reading the guide, following the examples and doing exercises you will
learn how to manipulate, visualise and summarise data.
* Hopefully you will have the curiousity to learn more :)

**Try it now!**
### Try it now!

1. Downloaded (http://ilustat.com/shared/Getting-Started-in-R.zip).
2. Unzip this file.
3. Open the "Getting-Started-in-R.pdf" to get started.
4. Enjoy :)
1. [Clone](https://help.github.com/articles/cloning-a-repository/) this repo, or [download the pdf](Getting-Started-in-R.pdf) !
2. Open [Getting-Started-in-R.pdf](Getting-Started-in-R.pdf) to get started.
3. Enjoy :)

### Origin

**A big thank you to the [reviewers and contributors](https://github.com/saghirb/Getting-Started-in-R/blob/master/Contributors.md)**.
This is modified version of
[Getting-Started-in-R](https://github.com/saghirb/Getting-Started-in-R) by
[Saghir Bashir](https://github.com/saghirb), with a careful focus on
dependency use which we refer to as [_The Tinyverse_](http://www.tinyverse.org/).

### Thanks

A big thank you to the [reviewers and contributors](Contributors.md).

### License

GPL-3

### Authors

Saghir Bashir and Dirk Eddelbuettel
File renamed without changes

0 comments on commit f81bdfc

Please sign in to comment.