Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

read.son

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

See Also

See Also networkDynamic

Examples

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

networkDynamic

Dynamic Extensions for Network Objects

v0.10.1
GPL-3
Authors
Carter T. Butts [aut], Ayn Leslie-Cook [aut], Pavel N. Krivitsky [aut], Skye Bender-deMoll [aut, cre], Zack Almquist [ctb], David R. Hunter [ctb], Li Wang [ctb], Kirk Li [ctb], Steven M. Goodreau [ctb], Jeffrey Horner [ctb], Martina Morris [ctb]
Initial release
2020-01-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.