Skip to content

Commit

Permalink
Merge pull request #2 from degauss-org/weekly_report
Browse files Browse the repository at this point in the history
Weekly report
  • Loading branch information
andrew-vancil authored Jan 12, 2022
2 parents 0d8f993 + b093dfb commit 9ebe692
Show file tree
Hide file tree
Showing 5 changed files with 2,451 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get update \
libgeos-dev \
libudunits2-dev \
libproj-dev \
libssl-dev \
libv8-dev \
&& apt-get clean

COPY renv.lock .
Expand All @@ -20,8 +20,8 @@ RUN R --quiet -e "renv::restore(repos = c(CRAN = 'https://packagemanager.rstudio

COPY tract_to_neighborhood.rds .
COPY ham_neighborhoods_dep_index_shp.rds .
COPY aggregate_data_report.r .
COPY weekly_data_report.R .

WORKDIR /tmp

ENTRYPOINT ["/app/aggregate_data_report.r"]
ENTRYPOINT ["/app/weekly_data_report.R"]
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# jfs_aggregated_data_report <a href='https://degauss-org.github.io/DeGAUSS/'><img src='DeGAUSS_hex.png' align="right" height="138.5" /></a>

> DeGAUSS container that generates two CSV files of aggregated data for JFS from a geocoded CSV file
> DeGAUSS container that generates one CSV file of aggregated, weekly data for JFS from a geocoded CSV file
[![Docker Build Status](https://img.shields.io/docker/automated/degauss/jfs_aggregated_data_report)](https://hub.docker.com/repository/docker/degauss/jfs_aggregated_data_report/tags)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/degauss-org/jfs_aggregated_data_report)](https://github.com/degauss-org/jfs_aggregated_data_report/releases)
Expand All @@ -10,10 +10,16 @@
If `my_address_file_geocoded.csv` is a file in the current working directory with coordinate columns named `lat` and `lon`, then

```sh
docker run --rm -v $PWD:/tmp degauss/jfs_aggregated_data_report:3.0 my_address_file_geocoded.csv
docker run --rm -v $PWD:/tmp degauss/jfs_aggregated_data_report:4.0 my_address_file_geocoded.csv
```

will produce two CSV files: `acv_level_report.csv` and `intake_level_report.csv`
will produce once CSV file: `weekly_report.csv`

## Dataset Notes

- Screening status `SCREENED IN AR` included with `SCREENED IN`
- If there is no `ALLEGATION_ADDRESS` given, we will use the `CHILD_ADDRESS`
- Intakes that either have no listed address or were unsuccessfully geocoded will be included as a "neigbhorhood" called `Missing`

## geomarker data

Expand Down
5 changes: 5 additions & 0 deletions test/simulated_jfs_edge_data_geocoded.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
INTAKE_ID,SCREENING_DECISION,DECISION_DATE,PERSON_ID,RACE,ADDRESS_START,address_type,address,PO,lat,lon,score,precision,precise_geocode,fips_tract_id,fraction_assisted_income,fraction_high_school_edu,median_income,fraction_no_health_ins,fraction_poverty,fraction_vacant_housing,dep_index
100395,SCREENED OUT,9/22/20,359568,White,4/5/15,ALLEGATION_ADDRESS,2523 RIDGELAND PL Cincinnati OH 45212,NA,39.148997,-84.531293,NA,NA,NA,39061005702,NA,NA,NA,NA,NA,NA,NA
101737,SCREENED IN AR,9/22/20,220861,White,3/19/19,ALLEGATION_ADDRESS,889 BRADFORD Cincinnati OH 45233,NA,39.148997,-84.531293,NA,NA,NA,39061010500,NA,NA,NA,NA,NA,NA,NA
103269,SCREENED IN,3/16/20,563789,White,8/7/16,CHILD_ADDRESS,2859 GILNA CT Cincinnati OH 45211,NA,39.233132,-84.381678,NA,NA,NA,39061010003,NA,NA,NA,NA,NA,NA,NA
103269,SCREENED IN,3/16/20,563789,White,8/7/16,ALLEGATION_ADDRESS,NA,NA,39.233132,-84.381678,NA,NA,NA,39061010003,NA,NA,NA,NA,NA,NA,NA
Loading

0 comments on commit 9ebe692

Please sign in to comment.