Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

99
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda