powered by
Evaluate associations between categorical variables
cross_tabs( dataset, var1, var2, tab = NULL, data_filter = "", envir = parent.frame() )
A list of all variables used in cross_tabs as an object of class cross_tabs
Dataset (i.e., a data.frame or table)
A categorical variable
Table with frequencies as alternative to dataset
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")
Environment to extract data from
See https://radiant-rstats.github.io/docs/basics/cross_tabs.html for an example in Radiant
summary.cross_tabs to summarize results
summary.cross_tabs
plot.cross_tabs to plot results
plot.cross_tabs
cross_tabs(newspaper, "Income", "Newspaper") %>% str() table(select(newspaper, Income, Newspaper)) %>% cross_tabs(tab = .)
Run the code above in your browser using DataLab