ts_table_2_zoo: Turn time series data.table into zoo object

Description Usage Arguments Author(s) See Also

View source: R/ts_table_2_zoo.R

Description

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

Usage

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)

Arguments

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

Author(s)

Matthias Bannert

See Also

data.table


mbannert/gateveys2 documentation built on May 21, 2019, 2:23 p.m.