Created
January 1, 2019 02:09
-
-
Save vm-wylbur/b98d540adce9d874bdef63344b335f74 to your computer and use it in GitHub Desktop.
use non-breaking thin space as thousands separator in rmarkdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myNum <- function(n) { | |
# use in markdown with variable some_number: | |
# `r myNum(some_number)` and the thousands separator is a | |
# nonbreaking thin space, which is ISO 30-1 | |
return(prettyNum(n, big.mark=' ')) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice!