as.tnet PDF Print E-mail

This function checks whether the network conforms to the tnet standard. If the type parameter is not set, the network is assumed to be a binary two-mode network, a weighted one-mode network, or a longitudinal network if there are 2, 3, or 4 columns, respectively.

Example

# Load tnet
library(tnet)

# Load sample data
sample <- rbind(
c(1,2,4),
c(1,3,2),
c(2,1,4),
c(2,3,4),
c(2,4,1),
c(2,5,2),
c(3,1,2),
c(3,2,4),
c(4,2,1),
c(5,2,2),
c(5,6,1),
c(6,5,1))

# Run function
as.tnet(sample)
Last Updated ( Friday, 27 November 2009 )