View source: R/overview_crosstab.R
overview_crosstab | R Documentation |
Sorts a data set conditionally in a cross table. This can be helpful to get a sense of the time and scope conditions of a data set. Note, if used with a data set that has multiple observations on the id-time unit, the function automatically aggregates this information using the mean.
overview_crosstab(dat, cond1, cond2, threshold1, threshold2, id, time)
dat |
A data set object |
cond1 |
Variable that describes the first condition |
cond2 |
Variable that describes the second condition |
threshold1 |
A threshold for |
threshold2 |
A threshold for |
id |
Scope (e.g., country codes or individual IDs) |
time |
Time (e.g., time periods given by years, months, ...) |
A data frame object that contains a summary of the data set that can
later be converted to a 'LaTeX' output using overview_latex
data(toydata) overview_crosstab( dat = toydata, cond1 = gdp, cond2 = population, threshold1 = 25000, threshold2 = 27000, id = ccode, time = year )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.