Learn R Programming

SemNeT (version 1.4.4)

semnetmeas: Semantic Network Measures

Description

Computes the average shortest path length (ASPL), clustering coefficient(CC), and modularity (Q) of the network

Usage

semnetmeas(A, meas = c("ASPL", "CC", "Q"), weighted = FALSE)

Value

Returns a values for ASPL, CC, and Q

Arguments

A

Matrix or data frame. An adjacency matrix of a network

meas

Character. Global network measures to compute. By default, computes ASPL, CC, and Q. Individual measures can be selected

weighted

Boolean. Should weighted measures be computed? Defaults to FALSE. Set to TRUE for weighted measures

Author

Alexander Christensen <alexpaulchristensen@gmail.com>

Examples

Run this code
# Simulate Datasets
one <- sim.fluency(10)

# Compute similarity matrix
cos <- similarity(one, method = "cosine")

# Compute networks
net <- TMFG(cos)

# Compute global network measures
globmeas <- semnetmeas(net)

Run the code above in your browser using DataLab