NIPATableIDs: Get a Vector of TableIDs Corresponding to NIPA Table Numbers

Description Usage Arguments Details Value Examples

Description

NIPATableIDs returns a vector of TableIDs corresponding to NIPA table numbers

Usage

1
NIPATableIDs(nipatabvec, dsname, key)

Arguments

nipatabvec

character vector with partial NIPA table names

dsname

text name of the dataset (e.g., "NIPA") (see BEA_DSlist)

key

Your BEA API key (can be obtained for free - check www.bea.gov)

Details

Queries the BEA API to get a list of tables for a particular dsname, and then finds the TableIDs for the given NIPA tables

Value

vector with TableIDs

Examples

1
2
nipatabvec <- c("2.1", "2.3.4", "2.3.6", "3.3", "3.9.6", "3.10.6")
NIPATableIDs(nipatabvec)

donboyd5/apitools documentation built on May 15, 2019, 10:38 a.m.