Last active
July 10, 2021 17:56
-
-
Save DATAUNIRIO/fe6a9f3595119bb3b58b7ee787eb82cf to your computer and use it in GitHub Desktop.
funcionamento do reactable e flextable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ----------------------------------------------------------------------- | |
# reactable | |
# ----------------------------------------------------------------------- | |
library(reactable) | |
library(reactablefmtr) | |
library(dplyr) | |
library(flextable) | |
#library(sparkline) | |
# reactable do data.frame | |
reactable(mtcars) | |
# flextable do data.frame | |
flextable(mtcars) | |
# reactable do AM | |
mtcars %>% pull(am) %>% table() %>% prop.table()%>% data.frame() %>% reactable() | |
# MPG grouped por AM | |
mtcars %>% select(mpg,am) %>% | |
reactable( | |
groupBy = "am", | |
defaultColDef = colDef( | |
aggregate = "sum" | |
) | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment