Skip to content

JakeRuss/bjs2r

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bjs2r

bjs2r is a set of convience functions for importing Bureau of Justice Statistics (BJS) data directly into R from the BJS Data API.

This product uses the BJS Data API but is not endorsed or certified by BJS.

Installation

# install.packages("devtools")
devtools::install_github("jakeruss/bjs2r")

Usage

  • Currently offers support for the National Crime Victimization Survey (NCVS)
csv_df    <- get_ncvs(filename = "filename.csv", path = "path/to/directory", 
                    survey = "personal", year = 2009, pop = TRUE, as.is = TRUE)

json_list <- get_ncvs(filename = "filename.json", path = "path/to/directory", 
                      survey = "personal", year = 2009, pop = TRUE)

About

Import Bureau of Justice data sets to R

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages