Skip to content

Commit

Permalink
remove unnecessary as.character call from adorn_totals("row")
Browse files Browse the repository at this point in the history
closes #118
  • Loading branch information
sfirke committed May 22, 2017
1 parent 68466f1 commit bacdf88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/add_totals.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ adorn_totals <- function(dat, which = c("row", "col"), fill = "-", na.rm = TRUE)

col_totals[nrow(col_totals), 1] <- "Total" # replace final row, first column with "Total"
dat <- dplyr::bind_rows(dat %>%
stats::setNames(names(dat)) %>%
dplyr::mutate_at(1, as.character), col_totals)
stats::setNames(names(dat)),
col_totals)
}

if("col" %in% which){
Expand Down

0 comments on commit bacdf88

Please sign in to comment.