library(dados)
library(reactable)
library(dplyr)
dados_gapminder |>
select(continente, pais, ano, pib_per_capita) |>
reactable(
groupBy = "continente",
searchable = TRUE,
outlined = TRUE,
columns = list(ano = colDef(sortable = TRUE))
)- 1
- Base do pacote {dados}
- 2
- Selecionando algumas colunas
- 3
- Agrupando pela coluna ‘continente’
- 4
- Inserindo uma busca na tabela
- 5
- Linhas na tabela
- 6
- Ordem crescente na coluna ‘ano’