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 in Data Analytics by prerana
23 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 20 by anonymous
• 31,840 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 in Data Analytics by rubini
72 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 in Data Analytics by anonymous
• 31,840 points
14 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 in Data Analytics by anonymous
• 31,840 points
16 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,020 points
64 views
0 votes
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,040 points
482 views
0 votes
1 answer

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

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

answered Nov 28, 2018 in Data Analytics by Maverick
• 10,040 points
292 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 in Data Analytics by anonymous
• 31,840 points
95 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 21 in Data Analytics by anonymous
• 31,840 points
206 views