This function returns a crosstab (tab) on a given data frame, and using simplified calls within the function for two variables, to return the observed and expected frequencies.
Usage
tab(df, var1, var2)
Value
This function returns the observed and expected frequencies of a bivariate relationship between var1 and var2 in data frame df.