Skip to content

Commit

Permalink
10/30/2024 fixing error in getStateLocalGovExpenditure()
Browse files Browse the repository at this point in the history
  • Loading branch information
juliechenerg committed Oct 30, 2024
1 parent f22e8fd commit 7531653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data-raw/CensusData.R
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ getStateLocalGovExpenditure <- function(year) {
# Keep Expenditures only
df<- df[which(df$Description == "Expenditure1"):nrow(df), ]
if (year > 2011) {
Line <- as.integer(df_i[complete.cases(df), 1])
Line <- as.integer(df[complete.cases(df), 1])
}
df <- df[, colnames(df) %in% c("Description", "United States Total",
state.name, "District of Columbia")]
Expand Down

0 comments on commit 7531653

Please sign in to comment.