README.md

qacdata

Overview

qacdata is an R data package for datasets used by students of Passion Driven Statistics. This package allows for the concise searching and downloading of relevant data from the following sources:

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("fredcorpuz06/qacdata")

Usage

library(qacdata)

data_search("education", c("FRED", "WDI"))
#> # A tibble: 3,611 x 4
#>    dataset col_id      description                               notes     
#>    <chr>   <chr>       <chr>                                     <list>    
#>  1 FRED    LNU04027662 Unemployment Rate: College Graduates: Ba~ <tibble [~
#>  2 FRED    LNS14027662 Unemployment Rate: College Graduates: Ba~ <tibble [~
#>  3 FRED    LNS14027660 Unemployment Rate: High School Graduates~ <tibble [~
#>  4 FRED    LNU04027660 Unemployment Rate: High School Graduates~ <tibble [~
#>  5 FRED    LNS14027659 Unemployment Rate: Less than a High Scho~ <tibble [~
#>  6 FRED    LNU04027659 Unemployment Rate: Less than a High Scho~ <tibble [~
#>  7 FRED    GCT1502US   People 25 Years and Over Who Have Comple~ <tibble [~
#>  8 FRED    G160291A02~ Government current expenditures: Educati~ <tibble [~
#>  9 FRED    CES6562000~ All Employees: Education and Health Serv~ <tibble [~
#> 10 FRED    CGMD25O     Unemployment Rate - College Graduates - ~ <tibble [~
#> # ... with 3,601 more rows

data_download("AddHealth", "H4TR10", "H4CJ5")
#> # A tibble: 5,114 x 2
#>    H4TR10 H4CJ5
#>     <dbl> <dbl>
#>  1      4   997
#>  2     97   997
#>  3     97     1
#>  4     97   997
#>  5      1   997
#>  6      1   997
#>  7      3   997
#>  8      1   997
#>  9      2   997
#> 10      2   997
#> # ... with 5,104 more rows

Getting help

If you encounter a clear bug, please file a minimal reproducible example on github.



fredcorpuz06/qacdata documentation built on Dec. 16, 2019, 12:41 a.m.