Package: FinNet 0.2

Fabio Ashtar Telarico

FinNet: Quickly Build and Manipulate Financial Networks

Providing classes, methods, and functions to deal with financial networks. Users can easily store information about both physical and legal persons by using pre-made classes that are studied for integration with scraping packages such as 'rvest' and 'RSelenium'. Moreover, the package assists in creating various types of financial networks depending on the type of relation between its units depending on the relation under scrutiny (ownership, board interlocks, etc.), the desired tie type (valued or binary), and renders them in the most common formats (adjacency matrix, incidence matrix, edge list, 'igraph', 'network'). There are also ad-hoc functions for the Fiedler value, global network efficiency, and cascade-failure analysis.

Authors:Fabio Ashtar Telarico [aut, cre]

FinNet_0.2.tar.gz
FinNet_0.2.tar.gz(r-4.5-noble)FinNet_0.2.tar.gz(r-4.4-noble)
FinNet_0.1.2.tgz(r-4.4-emscripten)FinNet_0.1.2.tgz(r-4.3-emscripten)
FinNet.pdf |FinNet.html
FinNet/json (API)

# Install 'FinNet' in R:
install.packages('FinNet', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/fatelarico/finnet/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

2.48 score 7 scripts 138 downloads 50 exports 3 dependencies

Last updated 2 days agofrom:be9d040af3. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 30 2024
R-4.5-linux-x86_64OKOct 30 2024

Exports:as.firmcfacolnamesduplicatedEecountedgecountFFFF.binary.bothFF.binary.managementFF.binary.ownershipFF.graphFF.graph.customFF.naive.bothFF.naive.managementFF.naive.ownershipFF.netFF.net.customFF.norm.bothFF.norm.managementFF.norm.ownershipfiedlerfind.firmfind.firmsfind.peopleFMFO.binaryFO.naiveFO.normgordergsizeisSymmetricncolnetwork.efficiencynetwork.sizenrowplot_igraphplot_networkprintquery.firmquery.firmsquery.firms.dataframeregister.firmrownamessubsetsummaryuniqueVvcountvertex.names

Dependencies:latticeMatrixRcpp

Example analyses

Rendered fromanalysis_examples.Rmdusingknitr::knitron Oct 30 2024.

Last update: 2024-10-29
Started: 2024-10-29

Example workflow (igraph edition)

Rendered fromworkflow-igraph_financial.Rmdusingknitr::knitron Oct 30 2024.

Last update: 2023-08-10
Started: 2023-05-30

Example workflow (network/sna edition)

Rendered fromworkflow-network_financial.Rmdusingknitr::knitron Oct 30 2024.

Last update: 2024-10-29
Started: 2024-10-29

Readme and manuals

Help Manual

Help pageTopics
Coerce into (a list of) 'firm' object(s)as.firm
Coerce a 'financial_matrix' object into a list of 'firm' objectsas.firm,financial_matrix-method
Perform cascade failure analysiscfa
Create any firm-firm (FF) matrixFF
Basic methods for objects of class 'financial_matrix'colnames,financial_matrix-method FF-basic-methods rownames,financial_matrix-method
Basic method to check to compare values in a 'financial_matrix' objectduplicated,financial_matrix,logical-method FF-comparison-methods unique,financial_matrix,logical-method
Mathematical methods for 'financial_matrix' objectsFF-math-methods isSymmetric,financial_matrix-method summary,financial_matrix-method
Number of rows/columns in a 'financial_matrix' objectFF-nrow-ncol ncol,financial_matrix-method nrow,financial_matrix-method
Method to subset a 'financial_matrix'FF-subset-method subset,financial_matrix-method
Create a complete binary firm-firm (FF) matrixFF.binary.both
Create a binary firm-firm (FF) matrix for board interlocksFF.binary.management
Create a binary firm-firm (FF) matrix for common ownershipFF.binary.ownership
Easily represent a firm-firm (FF) network using the package 'igraph'FF.graph
Represent a firm-firm (FF) network using the package 'igraph'FF.graph.custom
Create a complete naive-valued firm-firm (FF) matrixFF.naive.both
Create a naive-valued firm-firm (FF) matrix for boards interlocksFF.naive.management
Create a naive-valued firm-firm (FF) matrix for common ownershipFF.naive.ownership
Easily represent a firm-firm (FF) network using the package 'network'FF.net
Represent a firm-firm (FF) network using the package 'network'FF.net.custom
Create a complete normalised-valued firm-firm (FF) matrixFF.norm.both
Create a normalised-valued firm-firm (FF) matrix for boards interlocksFF.norm.management
Create a normalised-valued firm-firm (FF) matrix for common ownershipFF.norm.ownership
Calculate the Fiedler value (algebraic connectivity)fiedler
Function to create a 'firm' (legal person) using data from 'Yahoo! Finance'find.firm
Function to create mutiple 'firms' (legal persons) using data from 'Yahoo! Finance'find.firms
Extract all the unique people associated to at least one of the provided 'firm' objectsfind.people
Complete Berkshire Hathaway Portfoliofirms_BKB
Three US firmsfirms_US
Function to create a (necessarily binary) firm-manager (FM) matrixFM
Function to create a binary firm-owner (FO) matrixFO.binary
Function to create a naive-valued firm-owner (FO) matrixFO.naive
Function to create a naive-valued firm-owner (FO) matrixFO.norm
Extending 'igraph' functions to 'igraph_financial' objectsE ecount gorder graph_methods gsize plot_igraph V vcount
igraph edge iterators for 'igraph_financial' objectsE,igraph-method E,igraph_financial-method ecount,igraph-method ecount,igraph_financial-method gsize,igraph-method gsize,igraph_financial-method igraph_E_iterators
An S4 class for relational data extending the package igraphigraph_financial igraph_financial-class
igraph vertex iterators for 'igraph_financial' objectsgorder,igraph-method gorder,igraph_financial-method igraph_v_iterators V,igraph-method V,igraph_financial-method vcount,igraph-method vcount,igraph_financial-method
An S4 class for relational data extending the package networknetwork_financial network_financial-class
Extending 'newtwork' functions to 'newtwork_financial' objectsedgecount network.size network_methods plot_network vertex.names
Operators for 'network_financial' objectsedgecount,network-method edgecount,network_financial-method network.size,network-method network.size,network_financial-method network_operators vertex.names,network-method vertex.names,network_financial-method
Calculate network efficiencynetwork.efficiency
igraph plotting for 'igraph_financial' objectsplot_igraph,igraph-method plot_igraph,igraph_financial-method plot_igraph-methods
network plotting for 'igraph_financial' objectsplot_network,network-method plot_network,network_financial-method plot_network-methods
Print information on a class 'firm' objectprint,firm-method
Function to extract information from a 'firm' object (legal person)query.firm
Function to extract information from multiple 'firm' object (legal person)query.firms
Function to extract information from multiple 'firm' object (legal person) as a data framequery.firms.dataframe
Function to create a 'firm' (legal person)register.firm