Download CCM Links from WRDS
Source:R/download_data_wrds_ccm_links.R
download_data_wrds_ccm_links.RdDownloads data from the WRDS CRSP/Compustat Merged (CCM) links
database. It allows users to specify the type of links (linktype) and the
primacy of the link (linkprim).
Arguments
- linktype
A character vector indicating the type of link to download. The default is
c("LU", "LC"), where "LU" stands for "Link Up" and "LC" for "Link CRSP".- linkprim
A character vector indicating the primacy of the link. Default is
c("P", "C"), where "P" indicates primary and "C" indicates conditional links.
Value
A data frame with the columns permno, gvkey, linkdt, and
linkenddt, where linkenddt is the end date of the link, and missing end
dates are replaced with today's date.