I would say that approaches using dplyr/dbplyr are better when working with the WRDS PostgreSQL database.
To do the equivalent of (obs=10), do something like the following. The real payoff to dbplyr-based approaches comes when merging multiple large tables, which happens on the WRDS PostgreSQL server without needing to download data.
I would say that approaches using
dplyr
/dbplyr
are better when working with the WRDS PostgreSQL database.To do the equivalent of
(obs=10)
, do something like the following. The real payoff todbplyr
-based approaches comes when merging multiple large tables, which happens on the WRDS PostgreSQL server without needing to download data.For many more examples like this one, see here.
Created on 2023-02-04 with reprex v2.0.2