Commit 6de98244 authored by Maurice A Brookhart's avatar Maurice A Brookhart
Browse files

updating description and readme

parent 4b1e34bb
Package: censusData
Type: Package
Title: Commonly used US Census data
Version: 0.1.0
Version: 0.2.0
Author: Alan Brookhart
Maintainer: The package maintainer <abrookhart@novisci.com>
Description: A simple package for internal use that makes available commonly used US Census data.
......
......@@ -13,7 +13,7 @@ library(knitr)
## Introduction
This package organizes and makes available some summary census data.
This package organizes and makes available some summary census data for use in NoviSci's PHRs.
## State-level summary files, 2000 - 2018
......@@ -48,3 +48,28 @@ stateCensus[1:20, ]
stateCensus %>% group_by(year) %>% summarize(total_population = sum(population))
```
## County-level summary files, 2010 - 2018
This file contains census data at the county level. Age, sex, and race breakdowns are not currently included.
<https://www2.census.gov/programs-surveys/popest/datasets/2010-2018/counties/asrh/cc-est2018-alldata.csv>
Some documentation regarding file layout of the source file can be found here
<https://www2.census.gov/programs-surveys/popest/technical-documentation/file-layouts/2010-2018/cc-est2018-alldata.pdf>
### Some example data
```{r data2}
library(censusData)
countyCensus[1:20, ]
```
```{r example2}
countyCensus %>% filter(stname == "North Carolina" & ctyname == "Durham County")
```
Introduction
------------
This package organizes and makes available some summary census data.
This package organizes and makes available some summary census data for
use in NoviSci’s PHRs.
State-level summary files, 2000 - 2018
--------------------------------------
......@@ -78,3 +79,61 @@ Some documentation regarding file layout can be found here
## 17 2016 323071342
## 18 2017 325147121
## 19 2018 327167434
County-level summary files, 2010 - 2018
---------------------------------------
This file contains census data at the county level. Age, sex, and race
breakdowns are not currently included.
<a href="https://www2.census.gov/programs-surveys/popest/datasets/2010-2018/counties/asrh/cc-est2018-alldata.csv" class="uri">https://www2.census.gov/programs-surveys/popest/datasets/2010-2018/counties/asrh/cc-est2018-alldata.csv</a>
Some documentation regarding file layout of the source file can be found
here
<a href="https://www2.census.gov/programs-surveys/popest/technical-documentation/file-layouts/2010-2018/cc-est2018-alldata.pdf" class="uri">https://www2.census.gov/programs-surveys/popest/technical-documentation/file-layouts/2010-2018/cc-est2018-alldata.pdf</a>
### Some example data
library(censusData)
countyCensus[1:20, ]
## # A tibble: 20 x 6
## state county stname ctyname year tot_pop
## <chr> <chr> <fct> <chr> <fct> <dbl>
## 1 01 001 Alabama Autauga County 2010 54571
## 2 01 001 Alabama Autauga County 2011 55208
## 3 01 001 Alabama Autauga County 2012 54936
## 4 01 001 Alabama Autauga County 2013 54713
## 5 01 001 Alabama Autauga County 2014 54876
## 6 01 001 Alabama Autauga County 2015 54838
## 7 01 001 Alabama Autauga County 2016 55242
## 8 01 001 Alabama Autauga County 2017 55443
## 9 01 001 Alabama Autauga County 2018 55601
## 10 01 003 Alabama Baldwin County 2010 182265
## 11 01 003 Alabama Baldwin County 2011 186540
## 12 01 003 Alabama Baldwin County 2012 190143
## 13 01 003 Alabama Baldwin County 2013 194886
## 14 01 003 Alabama Baldwin County 2014 199189
## 15 01 003 Alabama Baldwin County 2015 202995
## 16 01 003 Alabama Baldwin County 2016 207712
## 17 01 003 Alabama Baldwin County 2017 212619
## 18 01 003 Alabama Baldwin County 2018 218022
## 19 01 005 Alabama Barbour County 2010 27457
## 20 01 005 Alabama Barbour County 2011 27350
countyCensus %>% filter(stname == "North Carolina" & ctyname == "Durham County")
## # A tibble: 9 x 6
## state county stname ctyname year tot_pop
## <chr> <chr> <fct> <chr> <fct> <dbl>
## 1 37 063 North Carolina Durham County 2010 267587
## 2 37 063 North Carolina Durham County 2011 276543
## 3 37 063 North Carolina Durham County 2012 282668
## 4 37 063 North Carolina Durham County 2013 288759
## 5 37 063 North Carolina Durham County 2014 295199
## 6 37 063 North Carolina Durham County 2015 300755
## 7 37 063 North Carolina Durham County 2016 307705
## 8 37 063 North Carolina Durham County 2017 311888
## 9 37 063 North Carolina Durham County 2018 316739
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment