API to create data for any count on child care deserts in Texas
- Create a database of data to be used to create the Texas Child Care Deserts
root <- "F:/Early_Childhood/04_Tarrant_County"
child_care_db(root = root,
naeyc_pth1 = naeyc_pth1,
naeyc_pth2 = naeyc_pth2)
- Load an child care deserts database or a subset of the database with clean and processed data for use
pth <- "F:/Early_Childhood/04_Tarrant_County/data/processed/child_care_env.RData"
load_env(pth)
- Compute child care distance distributions
pth <- "F:/Early_Childhood/04_Tarrant_County/data/processed/child_care_env.RData"
load_env(pth)
county <- c("48201", "48439")
calc.distance_decile_table(df = DF_ACF, county_list = county)
pth <- "F:/Early_Childhood/04_Tarrant_County/data/processed/child_care_env.RData"
load_env(pth)
county <- c("48201", "48439")
calc.distance_density_plot(df = DF_ACF, county_list = county)
- Calculate subsidy providers average capacity
Note: The tract_radius (in miles) should be informed by analysis using the above functions.
pth <- "F:/Early_Childhood/04_Tarrant_County/data/processed/child_care_env.RData"
load_env(pth)
config <- list(`48439` = list(tract_radius = 3),
`48201` = list(tract_radius = 3))
calc.subsidy_capacity(config = config,
xwalk_tracts = XWALK_TRACTS,
adj_tracts = ADJ_TRACTS,
df_hhsc_ccl = DF_HHSC_CCL,
df_acf = DF_ACF)
calc.subsidy_capacity(config = config,
xwalk_tracts = XWALK_TRACTS,
adj_tracts = ADJ_TRACTS,
df_hhsc_ccl = DF_HHSC_CCL,
df_acf = DF_ACF,
grouping_vars = "center_prvdr")
- Subset the database to a specific county to application development
Note: The tract_radius (in miles) and capacity estimates should be informed by analysis using the above functions.
pth <- "F:/Early_Childhood/04_Tarrant_County/data/processed/child_care_env.RData"
config <- list(`48439` = list(tract_radius = 3,
home_prvdr_non_sub_capacity = .85,
center_prvdr_non_sub_capacity = .85,
home_prvdr_sub_capacity = .75,
center_prvdr_sub_capacity = .65),
`48201` = list(tract_radius = 3,
home_prvdr_non_sub_capacity = .85,
center_prvdr_non_sub_capacity = .85,
home_prvdr_sub_capacity = .84,
center_prvdr_sub_capacity = .78))
save_subset_child_care_db(pth = pth,
config = config)
- Subset the database to a specific county AND 0-3 age range for application development
Note: The tract_radius (in miles) and capacity estimates should be informed by analysis using the above functions.
pth <- "F:/Early_Childhood/04_Tarrant_County/data/processed/child_care_env.RData"
config <- list(`48439` = list(tract_radius = 3),
`48201` = list(tract_radius = 3))
save_subset_child_care_db_03(pth = pth,
config = config)
- Open Git Bash
- Type
git clone https://github.com/Texas-Policy-Lab/texas_child_care_deserts.git
- Open the R-project
- Type
install.packages("renv")
- In the console type
renv::restore()
to create the local R-environment
- Assign a JIRA ticket to yourself
- In the console type
git checkout -b features/TCCCD-10
or whatever JIRA ticket number you've assigned to yourself - Make the changes to the code
- Stage your commit by typing
git add file_name
and then type `git commit -m "commit message" - To push your changes to the server type
git push
- Make changes to the code according the to ticket you are working on
- Load the package
devtools::load_all()
- Run the
child_care_db
function
root <- "F:/Early_Childhood/04_Tarrant_County"
child_care_db(root = root)
- Update the function documentation
devtools::document()
- Run all the tests to make sure they are passing
devtools::test()
- Ask a team member to review your work by sending a pull request