How to format output in shiny app

0 votes
How to format output in shiny app? I want to display units % to a field in tableOutput().
Aug 20, 2019 in Data Analytics by prerana
1,072 views

1 answer to this question.

0 votes

You can use sprintf() to define the printing of elements.

Like below.

x <- seq(0.7, 0.8, 0.1)
sprintf("%.1f %%", 100*x)
[1] "70.0 %" "80.0 %"

Hope it helps.

answered Aug 21, 2019 by anonymous
• 33,030 points

Related Questions In Data Analytics

0 votes
0 answers

Give output variable as input to another vaiable in shiny app

Can i send the output stored in ...READ MORE

Jul 16, 2019 in Data Analytics by rubini
573 views
0 votes
1 answer

How to render outputs of few elements(graphs) in shiny app?

hi Racheal, You can isolate those outputs which ...READ MORE

answered Aug 30, 2019 in Data Analytics by anonymous
• 33,030 points
724 views
0 votes
1 answer

How to set choices of inputs within server function in shiny app?

@Kajal, Use renderUI function to add input elements ...READ MORE

answered Oct 28, 2019 in Data Analytics by anonymous
• 33,030 points
657 views
0 votes
1 answer

How to limit output of a dataframe in R?

For randomly sampling a row/cell where a ...READ MORE

answered Apr 18, 2018 in Data Analytics by kappa3010
• 2,090 points
3,396 views
+1 vote
1 answer

Error saying "could not find function "shinyUI"" in shiny R

Its a small spelling mistake that you've ...READ MORE

answered Nov 28, 2018 in Data Analytics by Maverick
• 10,840 points
2,626 views
+1 vote
1 answer

Error saying "could not find function dashboardPage" in shiny R

Include this line in the code: Library(shinydashboard) READ MORE

answered Nov 29, 2018 in Data Analytics by Maverick
• 10,840 points
3,659 views
0 votes
1 answer

How to include css code in shiny r app?

To include a CSS file, use includeCSS(), ...READ MORE

answered Aug 30, 2019 in Data Analytics by anonymous
• 33,030 points
2,175 views
0 votes
1 answer

How to hide/show tabs in shiny app in R?

Hi, Radha One way is to use hidetab ...READ MORE

answered Aug 22, 2019 in Data Analytics by anonymous
• 33,030 points
6,704 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP