https://github.com/datacamp/finddatasetpkgs
An R package that lists all CRAN R packages with "datasets" or "data sets" in the Title field of their DESCRIPTION file.
https://github.com/datacamp/finddatasetpkgs
Last synced: 12 months ago
JSON representation
An R package that lists all CRAN R packages with "datasets" or "data sets" in the Title field of their DESCRIPTION file.
- Host: GitHub
- URL: https://github.com/datacamp/finddatasetpkgs
- Owner: datacamp
- Created: 2018-02-14T22:34:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-14T23:18:20.000Z (over 8 years ago)
- Last Synced: 2025-03-05T09:16:07.972Z (over 1 year ago)
- Language: R
- Size: 3.91 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
output:
md_document:
variant: markdown_github
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# finddatasetpkgs
*finddatasetpkgs* helps you find other R packages that contain datasets. At the moment, it is pretty stupid, and just looks in the Title field of the DESCRIPTION file of each package on CRAN, and checks if it contains "dataset" or "data set".
## Example
There is one user-facing function, `get_dataset_pkgs()`. Call it without any arguments to get a data frame of packages that probably have datasets in them.
By default, the data will also be shown in a your web browser.
```{r, get_dataset_pkgs_browse, eval = FALSE}
library(finddatasetpkgs)
get_dataset_pkgs() # show in browser
```
You can turn this off, if you just want to work with the data frame programmatically.
```{r, get_dataset_pkgs_program, result = "asis"}
library(finddatasetpkgs)
pkgs <- get_dataset_pkgs(browse = FALSE) # don't show
knitr::kable(head(pkgs))
```