search for: 1afadd3

Displaying 3 results from an estimated 3 matches for "1afadd3".

Did you mean: 10fa0d3
2025 May 23
1
Formatting zeroes with prettyNum
...um("0", zero.print = "- ", replace.zero = TRUE) [1] "- " I'm pretty sure this is a bug, and have now posted the relevant details on r-devel. A fix would be below. Best, Mikko diff --git a/src/library/base/R/format.R b/src/library/base/R/format.R index 63fef83..1afadd3 100644 --- a/src/library/base/R/format.R +++ b/src/library/base/R/format.R @@ -338,7 +338,7 @@ prettyNum <- big.mark=big.mark, big.interval=big.interval, small.mark=small.mark, small.interval=small.interval, decimal.mark=decimal.mark, z...
2025 May 23
1
Bug in prettyNum
...= "- ", replace.zero = TRUE) [1] "- " Please see below a patch which I believe would fix this. I haven't tested it as I can't easily compile R from source with my setup. Best, Mikko diff --git a/src/library/base/R/format.R b/src/library/base/R/format.R index 63fef83..1afadd3 100644 --- a/src/library/base/R/format.R +++ b/src/library/base/R/format.R @@ -338,7 +338,7 @@ prettyNum <- big.mark=big.mark, big.interval=big.interval, small.mark=small.mark, small.interval=small.interval, decimal.mark=decimal.mark, z...
2025 May 23
1
Formatting zeroes with prettyNum
You fed it two characters, "dash" and "space" and it only wanted one character so it truncated to the first character and warned you that that's what it did. If you had your space before the dash, it would have used that as your replacement character > prettyNum(0, zero.print = " - ", replace = TRUE) [1] " " Warning message: In .format.zeros(x,