Skip to content

Commit 8a17d42

Browse files
committed
fill NAs
1 parent 3bffc83 commit 8a17d42

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

R/getIDVars.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ getIDVars <- function(schema = NULL, input = NULL){
121121
tidyr::extract(col = 1, into = names(temp)[iy], regex = tempVar$split)
122122
}) %>% bind_cols(.name_repair = "check_unique")
123123
}
124+
# fill NAs introduced by non-matching rows after split
125+
if(anyNA(temp[1])){
126+
temp <- temp %>%
127+
fill(1, .direction = "down")
128+
}
124129
}
125130

126131
# ... or merge the variable

_pkgdown.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ reference:
3838
- .eval_sum
3939
- .expect_valid_table
4040
- .getColTypes
41-
- .reportProblems
42-
- .spliceHeader
4341
- .tidyVars
4442
- .updateFormat
4543
- show,schema-method

0 commit comments

Comments
 (0)