Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

100
Vistas
Expandable/Collapsible rows for datatable in R Shiny

I'm trying to build something like a sales report where country-level sales aggregate to regional level and can be seen through expand/collapse button at the regional rows. For example if I have a table like: enter image description here

Then I want a resulting starting table to be

enter image description here

and i can click on a button next to "North America" to see the country-level details below.

It seems like the only way to do it in Shiny is through datatable and manipulating the callback functions, which require quite a bit of javascript knowledge (that I don't have). I did find another answer posted here that got me started. But there are still some key differences that I wasn't able to figure out (for example, showing both top-level label AND the top-level sales data at the same time, as opposed to only showing the top-level label in the other answer).

Could anyone give some advice on how to go about this? Any help would be greatly appreciated!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda