get_tpu: Get Trade Policy Uncertainty (TPU) data

Description Usage Arguments Value References See Also Examples

Description

Get Trade Policy Uncertainty (TPU) data

Usage

1
get_TPU(region = "China")

Arguments

region

a character indicating the region of the TPU, default is "China", can be "Japan" or "US".

Value

an xts data object containing the TPU for the chosen region

References

https://www.policyuncertainty.com/trade_uncertainty.html

See Also

xts

Examples

1
2
3
4
5
6
china_tpu <- get_TPU()
plot(china_tpu)
# get Japan TPU
jap_tpu <- get_TPU("Japan")
library(dygraphs)
dygraph(jap_tpu)

Lingbing/epuR documentation built on May 2, 2020, 1:22 p.m.