View source: R/download_data_wrds.R
download_data_wrds | R Documentation |
This function acts as a wrapper to download data from various WRDS datasets including CRSP, Compustat, and CCM links based on the specified type. It is designed to handle different data types by redirecting to the appropriate specific data download function.
download_data_wrds(type, start_date = NULL, end_date = NULL, ...)
type |
A string specifying the type of data to download. It should match one of the predefined patterns to indicate the dataset: "wrds_crsp" for CRSP data, "wrds_compustat" for Compustat data, or "wrds_ccm_links" for CCM links data. |
start_date |
Optional. A character string or Date object in "YYYY-MM-DD" format specifying the start date for the data. If not provided, a subset of the dataset is returned. |
end_date |
Optional. A character string or Date object in "YYYY-MM-DD" format specifying the end date for the data. If not provided, a subste of the dataset is returned. |
... |
Additional arguments passed to specific download functions depending on the |
A data frame containing the requested data, with the structure and
contents depending on the specified type
.
crsp_monthly <- download_data_wrds("wrds_crsp_monthly", "2020-01-01", "2020-12-31")
compustat_annual <- download_data_wrds("wrds_compustat_annual", "2020-01-01", "2020-12-31")
ccm_links <- download_data_wrds("wrds_ccm_links", "2020-01-01", "2020-12-31")
fisd <- download_data_wrds("wrds_fisd")
trace_enhanced <- download_data_wrds("wrds_trace_enhanced", cusips = "00101JAH9")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.