Description Usage Arguments Author(s) See Also
View source: R/ts_table_2_zoo.R
This function extracts a zoo time series object from a
data.table that was created by calc_shares
and processed by dt_2_ts_table
. The
resulting zoo object is stored to an environment
1 2 3 | ts_table_2_zoo(dtable, env, cname = "ch", pname = "kof",
sname = "iq02", freq = 4, item_chunk = "item",
ans_chunk = "an", var_in_key = 4)
|
dtable |
the data.table object |
env |
environment to store the results |
cname |
name of the country, typically 2 characters. |
pname |
name of the data.provider. |
sname |
name of the source. |
freq |
integer frequency of the resulting time series, defaults to 4. currently only quarterly time series are supported. |
item_chunk |
character chunk denoting items within the time series key. defaults to "item: |
ans_chunk |
character chunk denoting answer count. |
var_in_key |
of variable name in data.table key, defaults to 4 |
Matthias Bannert
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.