Summary method for pivotr
# S3 method for pivotr
summary(object, perc = FALSE, dec = 3, chi2 = FALSE,
shiny = FALSE, ...)
Return value from pivotr
Display numbers as percentages (TRUE or FALSE)
Number of decimals to show
If TRUE calculate the chi-square statistic for the (pivot) table
Did the function call originate inside a shiny app
further arguments passed to or from other methods
See https://radiant-rstats.github.io/docs/data/pivotr.html for an example in Radiant
pivotr
to create the pivot-table using dplyr
# NOT RUN {
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()
# }
Run the code above in your browser using DataLab