Skip to content

Commit

Permalink
Ensure integers become large integer objects (this drastically speeds…
Browse files Browse the repository at this point in the history
… up summary statistics
  • Loading branch information
domjarkey committed Sep 9, 2022
1 parent d394ad4 commit 0c641d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/codeBookGeneric.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ writeCodeBookLatexGeneric <- function(
x <- ds %>% filter(cd_number == 1) %>% dplyr::select(nm) %>% dplyr::collect() %>% dplyr::pull(nm)
} else {
x <- ds %>% dplyr::select(nm) %>% dplyr::collect() %>% dplyr::pull(nm)
if (cls == "integer") {
x <- as.integer(as.numeric(x))
}
}

} else {
Expand Down

0 comments on commit 0c641d6

Please sign in to comment.