emu_tabyl | R Documentation |
This function allows you to create pivot tables for EMU, expanded and non expanded.
emu_tabyl(df, var1, var2, var3, expansion = f_exp, show_na = T, ...)
df |
The dataframe containing the EMU information. |
var1 |
the column name of the first variable. |
var2 |
(optional) the column name of the second variable (the rows in a 2-way tabulation). |
var3 |
(optional) the column name of the third variable (the list in a 3-way tabulation). |
expansion |
the column name with the expansion factor to be used in the summarise |
show_na |
should counts of NA values be displayed? In a one-way tabyl, the presence of NA values triggers an additional column showing valid percentages(calculated excluding NA values). |
The pivot table with the expansion variable.
emu_tabyl(bd, Antes_viajes_2_6, show_na = F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.