Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
aspina7 committed Aug 27, 2022
1 parent b99cf3a commit fa6338c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Package: epitabulate
Title: Tables for Epidemiological Analysis
Version: 0.0.0.9006
Version: 0.0.0.9007
Authors@R: c(
person(given = "Amy",
family = "Gimma",
role = c("aut", "cre")),
role = c("aut", "cre"),
email = "[email protected]"),
person(given = "Zhian N.",
family = "Kamvar",
role = c("aut"),
Expand Down
4 changes: 1 addition & 3 deletions R/transpose_pretty.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ transpose_pretty <- function(x, columns, rows, suffix, clev = NULL) {
#' @return a flipped data frame where the stratifying variables are flipped
#' @noRd
#'
#' @examples
#'
flipper <- function(x, res, transpose = c("variable", "value", "both"), pretty = TRUE, stra, is_survey = TRUE) {
if (transpose == "both") {
# if the user wants to keep both columns, then we unite them and then
Expand Down Expand Up @@ -185,7 +183,7 @@ widen_tabulation <- function(y, cod, st, pretty = TRUE, digits = 1) {
if (pretty) {
# map through all the levels of l and pull out the matching columns
tmp <- purrr::map(l, ~ dplyr::select(y, dplyr::starts_with(paste0(., " "))))
# pretty up those columns
# pretty up those columns
tmp <- purrr::map2(tmp, l, ~ prettify_tabulation(.x, digits = digits, ci_prefix = .y))
# glue the results to the first column of the data
y <- dplyr::bind_cols(y[1], tmp, .name_repair = "minimal")
Expand Down

0 comments on commit fa6338c

Please sign in to comment.