View source: R/data_functions.R
imf_parameter_defs | R Documentation |
Get text descriptions of input parameters used in making API requests from a given IMF database
imf_parameter_defs(database_id, times = 3, inputs_only = T)
database_id |
character string of a |
times |
numeric. Maximum number of API requests to attempt. |
inputs_only |
logical. Whether to return only parameters used as inputs in API requests, or also output variables. |
Returns a data frame of input parameters used in making API requests
from a given IMF database, along with text descriptions or definitions of
those parameters. Useful in cases when parameter names returned by
imf_databases
are not self-explanatory. (Note that the
usefulness of text descriptions can be uneven, depending on the database
design.)
# Get names and text descriptions of parameters used in IMF API calls to the
# Primary Commodity Price System database
param_defs <- imf_parameter_defs(database_id = 'PCPS')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.