Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tables: format numbers #1

Open
MonkmanMH opened this issue Mar 27, 2017 · 1 comment
Open

tables: format numbers #1

MonkmanMH opened this issue Mar 27, 2017 · 1 comment

Comments

@MonkmanMH
Copy link
Owner

Apply formatting to the tables in the shiny app, reducing the number of decimal places shown

@MonkmanMH
Copy link
Owner Author

MonkmanMH commented Mar 28, 2017

Note to self: the DT package, specifically http://rstudio.github.io/DT/functions.html

format the columns A and C as currency, and D as percentages
datatable(m) %>% formatCurrency(c('A', 'C')) %>% formatPercentage('D', 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant