I want to format big numbers in a categorical tbl_summary to simplify zeros.
|Characteristic||N = 40,000|
|Characteristic||N = 40|
|variable1||Results in thousands|
As you can see, is a frequency table but with the big numbers smplified by thousands. I was trying to achieve my desired output with functions inside
style_numberbut i keep recieving the error: Error in .x * scale : non-numeric argument to binary operator. The answer could also be in the r package
Let me know if you have some insights. Thanks.
digits=argument you can pass both integers AND styling functions. In the example below, I wrote a new function that scales large numbers to the nearest thousand.
If you have better answer, please add a comment about this, thank you!