Description Usage Arguments Details Author(s) See Also Examples
Package National Accounts data sources
1 2 3 4 |
list |
a character vector of National Accounts data source IDs. |
isic |
an integer specifying the ISIC classification of data sources. |
file |
the exported |
namecou |
a character vector of 3-digit ISO country codes read from column ‘cou’. |
namepar |
a character vector of 3-digit ISO partner codes read from column ‘par’. |
namevar |
a character vector of variables read from column ‘var’. |
nameeuc |
a character vector of end-use codes read from column ‘euc’. |
nameind |
a character vector of industries read from column ‘ind’ or from ‘dim.ind’ if specified. |
nameyear |
and integer vector specifying the selected period. |
replace |
specify if the existing data shall be replaced. |
sqlite |
specify if the data shall be stored as SQLite database. |
This function prepares R data files for packaging. It is primarily intended to maintain data sources from National Accounts (in million USD). For example, sou="BTD"
and isic=3
will generate the data set DATA.BTDi3
in the specified rdata
file.
OECD STAN
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## create for stanapp:
sourcesSTANNAi3 <- c('UNSDSNA2013', 'ICIO052013', 'WIOT042012', 'STAN', 'BTD')
packageData(list=sourcesSTANNAi3,
namecou = unique(c(union(STAN.COU, STAN.COUKPC), "BGR", "BRN", "CYP", "HKG", "KHM", "LKA", "LTU", "LVA", "MLT", "MYS", "ROU", "SAU", "SGP", "THA", "VNM")),
namevar = union(STAN.VARALL, c("FDDE", "FGGE", "FHHE", "GCFI", "INVC", "GDPR")),
isic = 3,
file = file.path(PATH.REPO, "stanData\\data\\STANNAi3.rda"),
replace = TRUE)
## include or update sources, keeping existing sources in file:
packageData(list = c("ICIO052013"),
namecou = unique(c(union(STAN.COU, STAN.COUKPC), "BGR", "BRN", "CYP", "HKG", "KHM", "LKA", "LTU", "LVA", "MLT", "MYS", "ROU", "SAU", "SGP", "THA", "VNM")),
namevar = union(STAN.VARALL, c("FDDE", "FGGE", "FHHE", "GCFI", "INVC", "GDPR")),
isic = 3,
file = file.path(PATH.REPO, "stanData\\data\\STANNAi3.rda"),
replace = FALSE)
## create for icioapp:
packageData(list = c("ICIOVB2013"),
isic = 3,
nameyear=c(1995:2009),
file = file.path(PATH.REPO, "icioData\\data\\STANICIOi3.rda"),
replace = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.