Skip to content

Commit

Permalink
Correct data_tidy_hladr_infant's pids
Browse files Browse the repository at this point in the history
They were NA as `pid_sheet` was numeric when using the `pid_sheet` to `pid` converting vector.
  • Loading branch information
MiguelRodo committed Oct 18, 2021
1 parent 38cd559 commit ff8d2fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions data-raw/data_tidy_prep.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -414,13 +414,14 @@ data_tidy_hladr_infant <- purrr::map_df(sheet_vec, function(sheet) {
data_raw_infant_bcg_cd4_ifng
)
}
data_out %>%
dplyr::mutate(
bcg = tolower(bcg)
) %>%
dplyr::select(-age) %>%
dplyr::mutate(
pid = sheet_to_r_pid_infant_ifng[pid_sheet]
pid = sheet_to_r_pid_infant_ifng[as.character(pid_sheet)]
) %>%
dplyr::select(-pid_sheet)
}) %>%
Expand All @@ -435,8 +436,10 @@ datautils::view_cols(
```

```{r , include = FALSE}
usethis::use_data(data_tidy_hladr_infant,
overwrite = TRUE)
usethis::use_data(
data_tidy_hladr_infant,
overwrite = TRUE
)
```

## HLADR MFI: Adults (Figure 4)
Expand Down
Binary file modified data/data_tidy_hladr_infant.rda
Binary file not shown.

0 comments on commit ff8d2fd

Please sign in to comment.