Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/datalorax/sds-pkg

Package for accompanying book on social data science with R
https://github.com/datalorax/sds-pkg

Last synced: 2 months ago
JSON representation

Package for accompanying book on social data science with R

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# sds

[![R-CMD-check](https://github.com/datalorax/sds-pkg/workflows/R-CMD-check/badge.svg)](https://github.com/datalorax/sds-pkg/actions)

The **sds** package is designed to accompany the [Social Data Science with R](https://www.sds.pub) book. It includes a function to load data different datasets and will soon include [learnr](https://rstudio.github.io/learnr/) apps for some of the more introductory content.

## Installation

You can install the development version of the package from [GitHub](https://github.com/) with:

``` r
# install.packages("remotes")
remotes::install_github("datalorax/sds-pkg")
```
## Example

There are multiple datasets used throughout the book. See all the datasets [here](). We can load any of these datasets using the `get_data()` function, passing the name of the dataset. For example.

```{r example}
library(sds)
benchmarks <- get_data("benchmarks")
benchmarks
```

The `get_data()` function supports any of the following: `"benchmarks"`, `"ds-bowl-2019"`, `"k-entry"`, `"sesame"`, `"state-test"`, `"titanic"`, or `"violence"`, with others likely to be added later. You can then use these datasets to follow along with any of the examples in the book.