Package: netmem 1.1-0

netmem: Social Network Measures using Matrices

Provides measures to describe and manipulate one-mode, two-mode, multiplex, and multilevel networks using matrix algebra. Implements functions for network centrality, cohesive subgroups, communities, structural holes, roles and positions, similarity measures, path distances, signed networks, segregation, social influence, and random network generation. Supports ego-centric and whole-network analyses, including dyadic and triadic censuses, structural balance, bipartite projections, measures with overlapping group memberships, Q-analysis, neighbourhood-inclusion dominance, main path analysis of citation networks, and permutation tests for networks. Key references: Bonacich (1972) <doi:10.1080/0022250X.1972.9989806>, Breiger (1974) <doi:10.2307/2576011>, Kivela et al. (2014) <doi:10.1093/comnet/cnu016>, Espinosa-Rada et al. (2024) <doi:10.1016/j.socnet.2023.11.008>, Schoch and Brandes (2016) <doi:10.1017/S0956792516000401>, Traag et al. (2019) <doi:10.1038/s41598-019-41695-z>, Everett and Borgatti (2026) <doi:10.1016/j.socnet.2025.12.001>.

Authors:Alejandro Espinosa-Rada [cre, aut]

netmem_1.1-0.tar.gz
netmem_1.1-0.zip(r-4.7-any)netmem_1.1-0.zip(r-4.6-any)netmem_1.1-0.zip(r-4.5-any)
netmem_1.1-0.tgz(r-4.6-any)netmem_1.1-0.tgz(r-4.5-any)
netmem_1.1-0.tar.gz(r-4.7-any)netmem_1.1-0.tar.gz(r-4.6-any)
netmem_1.1-0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
netmem/json (API)

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

Bug tracker:https://github.com/anespinosa/netmem/issues

Pkgdown/docs site:https://anespinosa.github.io

Datasets:

On CRAN:

Conda:

matricesmultilayer-networksnetwork-analysisnetwork-sciencesnasocial-networksocial-network-analysissociology

6.06 score 12 stars 16 scripts 434 downloads 114 exports 2 dependencies

Last updated from:7bc4a983c0. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK154
source / vignettesOK359
linux-releaseOK296
macos-releaseOK179
macos-oldrelOK210
windows-develOK122
windows-releaseOK243
windows-oldrelOK115
wasm-releaseOK227

Exports:adj_to_incidenceadj_to_matrixaggregate_layersalter_compositionalter_heterogeneityalter_homophilybetweenness_centralitybfs_ugraphblock_densitybonacich_normbonacich_powerbrokerage_rolescentrality_centralizationcitation_decayclique_maxclique_tablecloseness_centralityco_occurrencecommunity_betweennesscommunity_greedycommunity_labelcomponents_idcompound_relationconcorcore_peripherycount_geodesicscug_testcumulativeSumMatricesdag_checkdag_sortdir_inclusiondist_geographicdist_sim_matrixdominance_layersdominance_pairsdominance_ranksdyad_triad_tabledyadic_censuseb_constraintedgelist_to_matrixego_netei_indexeigenvector_centralityexpand_matrixextract_componentfractional_approachgen_degreegen_densitygeo_distancesgeo_summaryheterogeneityhyperevent_dominancehypergraphind_rand_matrixindirect_reljaccardk_corekatz_centralitykp_reciprocitykrackhardt_indexleading_eigenleidenmain_pathmain_path_diagmatrix_adjlistmatrix_projectionmatrix_reportmatrix_to_edgelistmeta_matrixminmax_overlapmix_matrixmixed_censusmodularity_scoremultilevel_degreemultiplex_censusneigh_inclusionpage_rank_centralitypareto_dominancepartition_centralitypercolation_cliqueperm_labelperm_matrixpos_dominanceposneg_indexpower_functionpref_attachmentpreserved_orderq_analysisqap_corqap_lmrecip_coefredundancyregesegregationset_inclusionshared_partnersshort_pathsimplicial_complexessmall_worldsocial_influencespatial_corstruc_balancestructural_holesstructural_nasupra_adjacencythreshold_diffusiontrans_coeftrans_matrixtraversal_weightstriad_umanwall_distanceswlocal_distancesz_arctestzone_sample

Dependencies:latticeMatrix

Getting started with netmem
The data | Describing the network | Centrality | Cohesive subgroups and communities | Homophily and positions | Structural holes | Statistical tests | How the results are checked | References

Last update: 2026-09-24
Started: 2026-09-24

Multilayer networks
Installation | Multilayers | Two-mode networks | Multilevel Networks | Example | Ties within and between modes | Multiplex networks | The layers in a single matrix | References

Last update: 2026-09-24
Started: 2022-01-27

What netmem adds
Ranking without choosing a centrality index | Overlapping categories | Q-analysis | Citation networks | Main path analysis | Fractional counting | Dominance among authors | Multilevel and multiplex networks | References

Last update: 2026-09-24
Started: 2026-09-24

Readme and manuals

Help Manual

Help pageTopics
Convert an Adjacency Matrix to an Incidence Matrixadj_to_incidence
Transform an adjacency list into a matrixadj_to_matrix
Aggregation of the layersaggregate_layers
Alter compositionalter_composition
Alter heterogeneityalter_heterogeneity
Alter homophilyalter_homophily
Betweenness centralitybetweenness_centrality
Block densities and image matrixblock_density
Bonacich normalizationbonacich_norm
Bonacich power centralitybonacich_power
Brokerage rolesbrokerage_roles
Camp 92 networkcampnet
Centralizationcentrality_centralization
Temporal decay weighting for citation edgescitation_decay
Maximal cliquesclique_max
Clique tableclique_table
Closeness centralitycloseness_centrality
Co‐occurrenceco_occurrence
Communities with agglomeration, label propagation or edge betweennesscommunities community_betweenness community_greedy community_label
Componentscomponents_id
Relational compositioncompound_relation
CONCORconcor
Core-periphery structurecore_periphery
Conditional uniform graph testcug_test
Cumulative sum of matricescumulativeSumMatrices
DAG validation and topological ordering for citation networksdag dag_check dag_sort
Neighbourhood inclusion in directed networksdir_inclusion
Geographical distancesdist_geographic
Structural similaritiesdist_sim_matrix
Path distancesbfs_ugraph count_geodesics distances short_path wall_distances wlocal_distances
Dominance layersdominance_layers
Dominance pairsdominance_pairs
Rank intervalsdominance_ranks
Forbidden triad tabledyad_triad_table
Dyad censusdyadic_census
Constrainteb_constraint
Transform an edgelist to a matrixedgelist_to_matrix
Ego networkego_net
Krackhardt and Stern's E-I indexei_index
Eigenvector centralityeigenvector_centrality
Expand Matrixexpand_matrix
Extract componentsextract_component
Ego FIFAFIFAego
Outside FIFAFIFAex
Inside FIFAFIFAin
Fractional approachfractional_approach
Generalized degreegen_degree
Generalized densitygen_density
Geodesic distancesgeodesics geo_distances geo_summary
Blau's and IQV indexheterogeneity
Hyper-event dominancehyperevent_dominance
Hypergraphshypergraph
Independent random matrixind_rand_matrix
Indirect relationsindirect_rel
Jaccard similarityjaccard
Generalized k-corek_core
Katz centralitykatz_centrality
Reciprocity of Katz and Powellkp_reciprocity
Krackhardt friendskrackhardt_friends
Krackhardt's dimensions of informal organisationskrackhardt_index
Lazega law firmlazega_lawfirm
Communities with the leading eigenvectorleading_eigen
Leiden communitiesleiden
Main path extraction from a citation networkmain_path
Diagnostics for main path analysismain_path_diag
Transform a matrix to an adjacency listmatrix_adjlist
Unipartite projectionsmatrix_projection
Matrix reportmatrix_report
Transform a square matrix to an edge-listmatrix_to_edgelist
Meta matrix for multilevel networksmeta_matrix
Minimum/maximum overlapminmax_overlap
Mixing matrixmix_matrix
Multilevel triad and quadrilateral censusmixed_census
Modularitymodularity_score
Degree centrality for multilevel networksmultilevel_degree
Multiplex triad censusmultiplex_census
Neighbourhood inclusionneigh_inclusion
PageRank centralitypage_rank_centrality
Pareto dominancepareto_dominance
Partition of centrality by categorypartition_centrality
Clique percolationpercolation_clique
Permute labels of a matrixperm_label
Permutation matrixperm_matrix
Positional dominance on indirect relationspos_dominance
Positive-negative centralityposneg_index
Power matrixpower_function
Preferential attachment networkpref_attachment
Preserved orderpreserved_order
Q-analysisq_analysis
QAP correlationqap_cor
QAP regressionqap_lm
Reciprocityrecip_coef
Redundancy measuresredundancy
Regular equivalencerege
Segregation measuressegregation
Set inclusion of neighbourhoodsset_inclusion
Shared partnersshared_partners
Simplicial complexessimplicial_complexes
Small world networksmall_world
Social influencesocial_influence
Spatial autocorrelationspatial_cor
Structural balancestruc_balance
Structural holesstructural_holes
Structural Missing Datastructural_na
Supra-adjacency matrixsupra_adjacency
Threshold diffusionthreshold_diffusion
Transitivitytrans_coef
Transitivity matrixtrans_matrix
Traversal weights for main path analysistraversal_weights
Triad census analysis assuming U|MANtriad_uman
Z test of the number of arcsz_arctest
Zone-2 sampling from second-modezone_sample