Skip to content

Commit

Permalink
Merge pull request #2 from sarahzeller/sarahzeller-correctly-specify-…
Browse files Browse the repository at this point in the history
…data-reference

✏️ refer to district level data
  • Loading branch information
sumtxt authored Apr 8, 2024
2 parents 2c80799 + 1425210 commit 74d7bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/xwalk_ags.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ xwalk_ags <- function(data,
if (length(lev) > 1) {
stop("All values in ", ags, " need to be of equal length.")
} else {
if (grepl("xc", xwalk) & lev != 5) {
stop("If district crosswalk is request, the values
if (grepl("xd", xwalk) & lev != 5) {
stop("If district crosswalk is requested, the values
in ags need to be of length 5.")
}
if (grepl("xm", xwalk) & lev != 8) {
Expand Down

0 comments on commit 74d7bc7

Please sign in to comment.