# Make an interactive pivot table

Source: `R/pivotr.R`
`dtab.pivotr.Rd`

Make an interactive pivot table

    # S3 method for pivotr
    dtab(
      object,
      format = "none",
      perc = FALSE,
      dec = 3,
      searchCols = NULL,
      order = NULL,
      pageLength = NULL,
      caption = 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

caption

  Table caption

...

  further arguments passed to or from other methods

## Details

See https://radiant-rstats.github.io/docs/data/pivotr.html for an example in Radiant

## See also

`pivotr` to create the pivot table

`summary.pivotr` to print the table

## Examples

    if (FALSE) {
    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)
    }