Package: netmem 1.0-3

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, structural holes, similarity measures, path distances, signed networks, and random network generation. Supports ego-centric and whole-network analyses, including dyadic and triadic census, structural balance, and bipartite projections. Key references: Bonacich (1972) <doi:10.1080/0022250X.1972.9989806>, Breiger (1974) <doi:10.2307/2576011>, Kivelä et al. (2014) <doi:10.1093/comnet/cnu016>, Espinosa-Rada et al. (2024) <doi:10.1016/j.socnet.2023.11.008>.

Authors:Alejandro Espinosa-Rada [cre, aut]

netmem_1.0-3.tar.gz
netmem_1.0-3.zip(r-4.7)netmem_1.0-3.zip(r-4.6)netmem_1.0-3.zip(r-4.5)
netmem_1.0-3.tgz(r-4.6-any)netmem_1.0-3.tgz(r-4.5-any)
netmem_1.0-3.tar.gz(r-4.7-any)netmem_1.0-3.tar.gz(r-4.6-any)
netmem_1.0-3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
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

5.56 score 12 stars 15 scripts 422 downloads 60 exports 11 dependencies

Last updated from:cfe239d3d3. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK160
source / vignettesOK231
linux-release-x86_64OK155
macos-release-arm64OK195
macos-oldrel-arm64OK150
windows-develOK121
windows-releaseOK124
windows-oldrelOK106
wasm-releaseOK108

Exports:adj_to_incidenceadj_to_matrixbfs_ugraphbonacich_normclique_tableco_occurrencecomponents_idcompound_relationcount_geodesicscumulativeSumMatricesdist_geographicdist_sim_matrixdyad_triad_tabledyadic_censuseb_constraintedgelist_to_matrixego_netei_indexexpand_matrixextract_componentfractional_approachgen_degreegen_densityheterogeneityhypergraphind_rand_matrixjaccardk_corekp_reciprocitymatrix_adjlistmatrix_projectionmatrix_reportmatrix_to_edgelistmeta_matrixminmax_overlapmix_matrixmixed_censusmultilevel_degreemultiplex_censuspercolation_cliqueperm_labelperm_matrixposneg_indexpower_functionq_analysisrecip_coefredundancyshared_partnersshort_pathsimplicial_complexesspatial_corstruc_balancestructural_natrans_coeftrans_matrixtriad_umanwall_distanceswlocal_distancesz_arctestzone_sample

Dependencies:clicpp11glueigraphlatticelifecyclemagrittrMatrixpkgconfigrlangvctrs

multilayer

Rendered frommultilayer.Rmdusingknitr::rmarkdownon Jun 19 2026.

Last update: 2026-04-01
Started: 2022-01-27

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
Bonacich normalizationbonacich_norm
Clique tableclique_table
Co‐occurrenceco_occurrence
Componentscomponents_id
Relational compositioncompound_relation
Cumulative sum of matricescumulativeSumMatrices
Geographical distancesdist_geographic
Structural similaritiesdist_sim_matrix
Path distancesbfs_ugraph count_geodesics distances short_path wall_distances wlocal_distances
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
Expand Matrixexpand_matrix
Extract componentsextract_component
Ego FIFAFIFAego
Outside FIFAFIFAex
Inside FIFAFIFAin
Fractional approachfractional_approach
Generalized degreegen_degree
Generalized densitygen_density
Blau's and IQV indexheterogeneity
Hypergraphshypergraph
Independent random matrixind_rand_matrix
Jaccard similarityjaccard
Generalized k-corek_core
Reciprocity of Katz and Powellkp_reciprocity
Krackhardt friendskrackhardt_friends
Lazega law firmlazega_lawfirm
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
Degree centrality for multilevel networksmultilevel_degree
Multiplex triad censusmultiplex_census
Clique percolationpercolation_clique
Permute labels of a matrixperm_label
Permutation matrixperm_matrix
Positive-negative centralityposneg_index
Power matrixpower_function
Q-analysisq_analysis
Reciprocityrecip_coef
Redundancy measuresredundancy
Shared partnersshared_partners
Simplicial complexessimplicial_complexes
Spatial autocorrelationspatial_cor
Structural balancestruc_balance
Structural Missing Datastructural_na
Transitivitytrans_coef
Transitivity matrixtrans_matrix
Triad census analysis assuming U|MANtriad_uman
Z test of the number of arcsz_arctest
Zone-2 sampling from second-modezone_sample