overview_crosstab {overviewR} | R Documentation |
overview_crosstab
Description
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.
Usage
overview_crosstab(dat, cond1, cond2, threshold1, threshold2, id, time)
Arguments
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, ...) |
Value
A data frame object that contains a summary of the data set that can
later be converted to a 'LaTeX' output using overview_latex
Examples
data(toydata)
overview_crosstab(
dat = toydata,
cond1 = gdp,
cond2 = population,
threshold1 = 25000,
threshold2 = 27000,
id = ccode,
time = year
)
[Package overviewR version 0.0.13 Index]