Learn R Programming

compete (version 0.1)

sparseness: Calculate the sparseness of relationships in a sociomatrix

Description

Calculate the sparseness of relationships in a sociomatrix

Usage

sparseness(m)

Arguments

m
A matrix with individuals ordered identically in rows and columns.

Value

The sparseness of m

Further details

The sparseness of a matrix is the proportion of null dyads

Examples

Run this code
sparseness(mouse)
sparseness(caribou)

Run the code above in your browser using DataLab