library(dplyr, warn.conflicts = FALSE)
library(tidyr)
library(wrds)
#> ── Checking WRDS credentials ───────────────────────────────────── wrds 0.0.1 ──
#> ✔ Credentials found for user iangow
library(farr, warn.conflicts = FALSE)
db <- wrds_connect()
wrds_call_te_1 <- tbl(db, I("bank.wrds_call_te_1"))
wrds_call_te_1 |>
filter(rssd9001 == 490937,
wrdsreportdate == "2004-06-30") |>
select(rssd9001, starts_with("text")) |>
pivot_longer(!rssd9001) |>
filter(!is.na(value)) |>
collect() |>
system_time()
#> user system elapsed
#> 1.156 0.031 4.081
#> # A tibble: 6 × 3
#> rssd9001 name value
#> <int> <chr> <chr>
#> 1 490937 text4469 ns Exp, Bus Dev, P
#> 2 490937 text4468 Courier, Audit Tax, Deff Comp, Other
#> 3 490937 text3549 IENC SECURITIES
#> 4 490937 text3550 IENC CD'S
#> 5 490937 text4464 ATM Fees, Exam Fees, Dues & Chairitable Cont
#> 6 490937 text4467 Telephone, BanClub, Federal Res Fees, NSF and Other LossCreated on 2026-02-01 with reprex v2.1.1
Below we see that the WRDS data are incorrect for the second case.
Created on 2026-02-01 with reprex v2.1.1