Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/datalorax/sds-pkg
- Owner: datalorax
- License: cc-by-4.0
- Created: 2020-12-01T23:42:15.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-10T00:53:44.000Z (about 4 years ago)
- Last Synced: 2023-03-01T23:28:05.046Z (almost 2 years ago)
- Language: R
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
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")
```
## ExampleThere 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.