Learn R Programming

radiant (version 0.1.95)

cross_tabs: Evaluate associations between categorical variables

Description

Evaluate associations between categorical variables

Usage

cross_tabs(dataset, ct_var1, ct_var2, data_filter = "")

Arguments

dataset
Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
ct_var1
A categorical variable
ct_var2
Another categorical variable
data_filter
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")

Value

A list of all variables used in cross_tabs as an object of class cross_tabs

Details

See http://vnijs.github.io/radiant/quant/cross_tabs.html for an example in Radiant

See Also

summary.cross_tabs to summarize results

plot.cross_tabs to plot results

Examples

Run this code
result <- cross_tabs("newspaper", "Income", "Newspaper")

Run the code above in your browser using DataLab