Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dtab.pivotr

Make an interactive pivot table


Description

Make an interactive pivot table

Usage

## S3 method for class 'pivotr'
dtab(
  object,
  format = "none",
  perc = FALSE,
  dec = 3,
  searchCols = NULL,
  order = NULL,
  pageLength = NULL,
  ...
)

Arguments

object

Return value from pivotr

format

Show Color bar ("color_bar"), Heat map ("heat"), or None ("none")

perc

Display numbers as percentages (TRUE or FALSE)

dec

Number of decimals to show

searchCols

Column search and filter

order

Column sorting

pageLength

Page length

...

further arguments passed to or from other methods

Details

See Also

pivotr to create the pivot table

summary.pivotr to print the table

Examples

## Not run: 
pivotr(diamonds, cvars = "cut") %>% dtab()
pivotr(diamonds, cvars = c("cut","clarity")) %>% dtab(format = "color_bar")
pivotr(diamonds, cvars = c("cut","clarity"), normalize = "total") %>%
  dtab(format = "color_bar", perc = TRUE)

## End(Not run)

radiant.data

Data Menu for Radiant: Business Analytics using R and Shiny

v1.3.12
AGPL-3 | file LICENSE
Authors
Vincent Nijs [aut, cre]
Initial release
2020-11-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.