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

summary.pivotr

Summary method for pivotr


Description

Summary method for pivotr

Usage

## S3 method for class 'pivotr'
summary(object, perc = FALSE, dec = 3, chi2 = FALSE, shiny = FALSE, ...)

Arguments

object

Return value from pivotr

perc

Display numbers as percentages (TRUE or FALSE)

dec

Number of decimals to show

chi2

If TRUE calculate the chi-square statistic for the (pivot) table

shiny

Did the function call originate inside a shiny app

...

further arguments passed to or from other methods

Details

See Also

pivotr to create the pivot-table using dplyr

Examples

pivotr(diamonds, cvars = "cut") %>% summary(chi2 = TRUE)
pivotr(diamonds, cvars = "cut", tabsort = "desc(n_obs)") %>% summary()
pivotr(diamonds, cvars = "cut", tabfilt = "n_obs > 700") %>% summary()
pivotr(diamonds, cvars = "cut:clarity", nvar = "price") %>% summary()

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.