Function to create a (necessarily binary) firm-manager (FM) matrix
Function to create a (necessarily binary) firm-manager (FM) matrix
FM(..., id_as_firm_name =NULL, Matrix =NULL)
Arguments
...: Either multiple objects of class firm or a list of such objects
id_as_firm_name: Whether to use the ticker as the firm's name. Defaults to TRUE if all firms' id is neither NULL nor NA.
Matrix: Whether to use the c("list("Matrix")", " package"). Defaults to TRUE when there are more than 10,000 combinations and the package is installed.
Returns
A matrix object of class financial_matrix (possibly using the c("list("Matrix")", " package")) in which:
the rows: Represent firms;
the columns: Represent managers (usually physical persons).
Examples
# Create the FM matrix of Berkshire Hathaway's holdingsdata('firms_BKB') FM <- FM(firms_BKB)