Skip to content

Commit

Permalink
remove non-state & empty CoCs (#13)
Browse files Browse the repository at this point in the history
* remove non-state & empty CoCs

* bump version number
  • Loading branch information
eveyp authored Jul 6, 2021
1 parent 9bce224 commit 4d41033
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: coc.data.package
Title: Point-in-time homelessness counts and covariates by CoC
Version: 0.4.1
Version: 0.4.2
URL: https://github.com/ucsf-bhhi/coc-data
Authors@R: c(
person(
Expand Down
1 change: 1 addition & 0 deletions code/coc_economic_indicators.R
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ fetch_public_program_use <- function(year) {
#' Medicaid
build_coc_public_program_use <- function(acs_data, tract_crosswalk) {
tract_crosswalk %>%
filter(!is.na(coc_number)) %>%
left_join(acs_data, by = c("tract_fips" = "fips", "year")) %>%
group_by(coc_number, year) %>%
summarise(
Expand Down
6 changes: 5 additions & 1 deletion code/pit_data_processing.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ get_long_pit_data <- function(wide_pit_data) {
get_coc_categories <- function(wide_pit_data) {
wide_pit_data %>%
# category is only present in the last year of data so filter for that one
filter(!is.na(coc_category)) %>%
filter(
!is.na(coc_category),
!(str_sub(coc_number, 1, 2) %in% c("GU", "MP", "VI", "PR")),
coc_number != "MO-604a"
) %>%
# just keep these variables around
select(coc_number, coc_name, coc_category)
}

0 comments on commit 4d41033

Please sign in to comment.