UI-Research / college-affordability.urban.org

0 stars 0 forks source link

Graph 7-7 R code not running #184

Closed vivhou closed 7 years ago

vivhou commented 7 years ago

I'm getting this error when I run 7-7 in processSection7.R: Error in[.data.frame(fig7_7, grep("Public four-year in-state", fig7_7$category), : undefined columns selected

bchartoff commented 7 years ago

Here: https://github.com/UrbanInstitute/ed-data/blob/master/scripts/processSection7.R#L108

The list:

 c("EFC", "Federal grants", "Military/Veterans", "State public grants", "Institutional grants", "Private   
 and employer aid", "Federal student loans", "Federal parent loans", "Private loans", "Earnings and   
 other resources", "NonTF budget", "Tuition and fees", "Budget beyond tuition and fees")

should correspond to the column names in fig7_7 (there is no EFC column, for example, it's been renamed to Expected family contribution).

If this fixes the issue, go ahead and close @vivhou

vivhou commented 7 years ago

So I think the column names changed because I had asked Victoria to standardize the column names since they were different across various graphs, so she did that yesterday afternoon. However, I inputted the revised column names and I'm getting this error: Error in drop && length(x) == 1L : invalid 'x' type in 'x && y'