Skip to content

Commit

Permalink
Minor Tweaks to README and dataset list vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
rudeboybert committed Jul 31, 2019
1 parent a26eff6 commit bdfc2ad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
9 changes: 4 additions & 5 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ knitr::opts_chunk$set(
comment = "#>",
fig.path = "README-"
)
library(fivethirtyeight)
```


Expand Down Expand Up @@ -53,15 +54,13 @@ library(fivethirtyeight)
data(bechdel)
head(bechdel)
?bechdel
# If using RStudio:
View(bechdel)
```

# To see a list of all data sets:
data(package = "fivethirtyeight")
To see a detailed list of all `r nrow(data(package = "fivethirtyeight")[[3]])` datasets, including information on the corresponding articles published on FiveThirtyEight.com, click [here](https://fivethirtyeight-r.netlify.com/articles/fivethirtyeight.html).

# To see a more detailed list of all data sets, see the package vignette:
vignette("fivethirtyeight", package = "fivethirtyeight")
```


## Article in "Technology Innovations in Statistics Education"
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,15 @@ library(fivethirtyeight)
data(bechdel)
head(bechdel)
?bechdel

# If using RStudio:
View(bechdel)

# To see a list of all data sets:
data(package = "fivethirtyeight")

# To see a more detailed list of all data sets, see the package vignette:
vignette("fivethirtyeight", package = "fivethirtyeight")
```

To see a detailed list of all 127 datasets, including information on the
corresponding articles published on FiveThirtyEight.com, click
[here](https://fivethirtyeight-r.netlify.com/articles/fivethirtyeight.html).

## Article in “Technology Innovations in Statistics Education”

The `fivethirtyeight` package was featured in [The fivethirtyeight R
Expand Down
2 changes: 1 addition & 1 deletion vignettes/fivethirtyeight.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ preview_only_datasets <- datasets %>%

## Note

All `r nrow(datasets)` datasets included in the `fivethirtyeight` package are listed in the next section. However due to CRAN-hosted R package size restrictions, the following `r length(preview_only_datasets)` datasets out of `r nrow(datasets)` only consist of a preview of the first 10 rows of the full dataset. Code to load the full dataset into R are provided in the respective help file example. For example, type `?house_district_forecast` into R.
All `r nrow(data(package = "fivethirtyeight")[[3]])` datasets included in the `fivethirtyeight` package are listed in the next section. However due to CRAN-hosted R package size restrictions, the following `r length(preview_only_datasets)` datasets out of `r nrow(data(package = "fivethirtyeight")[[3]])` only consist of a preview of the first 10 rows of the full dataset. Code to load the full dataset into R are provided in the respective help file example. For example, type `?house_district_forecast` into R.

```{r, message=FALSE, warning=FALSE, echo=FALSE}
preview_only_datasets
Expand Down

0 comments on commit bdfc2ad

Please sign in to comment.