Last chance! 50% off unlimited learning
Sale ends in
Make a pivot tabel in DT
# S3 method for pivotr
dtab(object, format = "none", perc = FALSE, dec = 3,
searchCols = NULL, order = NULL, pageLength = NULL, ...)
Return value from pivotr
Show Color bar ("color_bar"), Heat map ("heat"), or None ("none")
Display numbers as percentages (TRUE or FALSE)
Number of decimals to show
Column search and filter. Used to save and restore state
Column sorting. Used to save and restore state
Page length. Used to save and restore state
further arguments passed to or from other methods
See http://radiant-rstats.github.io/docs/data/pivotr.html for an example in Radiant
pivotr
to create the pivot-table using dplyr
summary.pivotr
to print a plain text table
# NOT RUN {
pivotr("diamonds", cvars = "cut") %>% dtab
pivotr("diamonds", cvars = c("cut","clarity")) %>% dtab(format = "color_bar")
ret <- pivotr("diamonds", cvars = c("cut","clarity"), normalize = "total") %>%
dtab(format = "color_bar", perc = TRUE)
# }
Run the code above in your browser using DataLab