Description Usage Arguments Details See Also Examples
Function to extract measures from IOTs into a CSV file
1 | export_csv(measures, iots, long = FALSE, filename = "choose")
|
measures: |
vector with the names of the measures |
iots: |
list of input-output tables for which measures are already calculated |
long: |
Whether data is in long or wide format. |
filename: |
Where to store the data |
filename = "choose" is default and will prompt a file-choose dialog.
First element in vector will be used to find the description of the data Make sure the output of the measures are of the same length. (i.e. all need to be on e.g. country-industry, country or industry level)
export_dataframe(): [export_dataframe()]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
iots <- load_iots("WIOD2013", 2000:2001)
iots <- oniots(wiod_gii, iots)
Not specifying directory prompts a file-choose dialog
export_csv("gii", iots)
export_csv("gii", iots, long = TRUE)
Save table in working directory
export_csv("gii", iots, filename = "myresults.csv")
Or specify a directory:
export_csv("gii", iots, filename = "D:/Research/myresults.csv")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.