Skip to content

Commit

Permalink
f_bills typo fix see previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Rinker committed Mar 21, 2017
1 parent 3cbd397 commit 04263f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/f_bills.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ f_mills <- function(x, relative = 0, digits = -6, prefix = "", ...) {

if (relative > 0) {
x <- sprintf(paste0("%.", 6 + digits, "f"), round(x, digits)/1e+06)
x <- gsub("^0.", ".", paste0(x, "B"))
x <- gsub("^0.", ".", paste0(x, "M"))
} else {
x <- gsub("^0.", ".", paste0(round(x, digits)/1e+06, "M"))
}
Expand All @@ -129,7 +129,7 @@ f_thous <- function(x, relative = 0, digits = -3, prefix = "", ...) {

if (relative > 0) {
x <- sprintf(paste0("%.", 3 + digits, "f"), round(x, digits)/1000)
x <- gsub("^0.", ".", paste0(x, "B"))
x <- gsub("^0.", ".", paste0(x, "K"))
} else {
x <- gsub("^0.", ".", paste0(round(x, digits)/1000, "K"))
}
Expand Down

0 comments on commit 04263f0

Please sign in to comment.