Learn R Programming

tnet (version 3.0.1)

tnet_sna: Exports a tnet network to an sna object

Description

The tnet_sna function creates an sna object from a tnet network.

Usage

tnet_sna(net,type=NULL)

Arguments

net
A tnet network
type
type of tnet network, see as.tnet.

Value

  • Returns an sna object.

References

http://toreopsahl.com/

Examples

Run this code
## 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 the programme
tnet_sna(sample, type="weighted one-mode tnet")

Run the code above in your browser using DataLab