View source: R/downloadSSOCS.R
downloadSSOCS | R Documentation |
Provides instructions to download School Survey on Crime and Safety (SSOCS) data in SAS (*.sas7bdat) format
for use with the readSSOCS
function.
The data originates from the SSOCS Data Products website at nces.ed.gov.
This function works for the following school year datasets: 2000 (1999–2000), 2004 (2003–2004), 2006 (2005–2006),
2008 (2007–2008), 2010 (2009–2010), 2016 (2015–2016), and 2018 (2017–2018).
downloadSSOCS(years = c(2000, 2004, 2006, 2008, 2010, 2016, 2018))
years |
an integer vector of the study years to download. Valid years are as follows: 2000, 2004, 2006, 2008, 2010, 2016, 2018 (see description). The instructions are the same for each year, this is for reference only. |
The year parameter value is shortened to the ending year of the school year (e.g., 2006 refers to the 2005–2006 school year data). Manually downloading the data files is required to fulfill the data usage agreement.
Tom Fink
readSSOCS
## Not run:
#see instructions for downloading SSOCS Data
downloadSSOCS()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.