R/data_gov.r

Defines functions gsa_buildings gsa_leases

# asb_key = "eplYqSMIdkiGBworNTYeHmbyjENYHK6seMHBNxdf"
# https://catalog.data.gov/


## https://catalog.data.gov/dataset

# fdic --------------------------------------------------------------------
# http://www.fdic.gov/bank/individual/failed/banklist.csv



# gsa ---------------------------------------------------------------------

## leases

gsa_leases <-
  function(url = "https://inventory.data.gov/dataset/2cdc97b5-3029-4ec3-b3bf-baec7948bad1/resource/ae0d8c20-3c63-40c3-96da-24a24f507e79/download/datagovlserexus.csv") {
    data <-
      url %>%
      read_csv() %>%
      suppressWarnings() %>%
      suppressMessages()

    data
  }

gsa_buildings <-
  function(url = "https://inventory.data.gov/dataset/04247624-1d6b-4e03-84eb-9eda1a6ea638/resource/63663b53-7cb6-4bea-bc4e-1e5897ef3158/download/datagovbldgrexus.csv") {
    data <-
      url %>%
      read_csv() %>%
      suppressWarnings() %>%
      suppressMessages()

    data
  }

# import_export -----------------------------------------------------------

function(url = "https://data.exim.gov/api/views/vbhv-d8am/rows.csv?accessType=DOWNLOAD") {

}
abresler/govtrackR documentation built on July 11, 2020, 12:30 a.m.