Description Usage Arguments Details Value Examples
View source: R/MakeTimeSeries.R
time_series
returns a data.frame containing a time series of a variable
1 2 3 4 5 6 7 8 9 10 11 |
mulaw |
The data.frame containing the version of the integrated file you wish to use |
variable |
The variable |
date |
the date variable, defaults to zpollenddate |
weight |
The weighting variable, defaults to zwave_weight |
remove |
An optional character vector of values to remove from final table (e.g. DK/Ref). This will not affect any calculations made. The vector is not case-sensitive. |
n |
logical, if TRUE a column of row totals is included |
pct_type |
Controls the kind of percentage values returned. One of "row," "cell," or "column." |
format |
one of "long" or "wide" |
... |
further arguments passed to pollster::crosstab, such as unwt_n |
This is a wrapper around pollster::crosstab in which x is assumed to be zpollenddate. All you have to provide is the y-var to the 'variable' argument
A tibble
1 | time_series(integ, g40)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.