read.son: Read .son-formatted (SoNIA) input files containing...

View source: R/import.R

read.sonR Documentation

Read .son-formatted (SoNIA) input files containing longitudinal network data and create a corresponding networkDynamic object

Description

A .son file is a tab-separated text file with two sections, the first describing node attribute events and the second arc attribute events. Each section has a set of defined column names as a header. See the SoNIA file specification for more information: https://sourceforge.net/p/sonia/wiki/Son_format/.

Usage

read.son(file, guess.TEA=TRUE)

Arguments

file

path to the file to be read

guess.TEA

logical: should the parser guess that non-changing attribute values are intended to be static instead of TEAs?

Details

Uses networkDynamic internally to build a dynamic network out of an array of vertex spells and an array of edge spells. Vertex and edge attributes will be attached, usually as TEA. However, If the values of an attribute never change, they will be attached as a static attribute. This is convenient but will be incorrect if a value was intended to be defined for only a single spell matching with the vertex activation. Setting guess.TEA=FALSE will force all attributes to be loaded as TEAs (slower).

Value

A network dynamic object with vertex and edge durations and attributes corresponding the the spells defined in the input file.

Note

The current version of this function does not support reading clusters.

Author(s)

Skye Bender-deMoll

References

https://sourceforge.net/p/sonia/wiki/Son_format/.

See Also

See Also networkDynamic

Examples

classroom<-read.son(system.file('extdata/cls33_10_16_96.son',package='networkDynamic'))

networkDynamic documentation built on May 29, 2024, 1:16 a.m.