sienaCompositionChange {RSiena} | R Documentation |
Used to create a list of events describing the changes over time of a Siena actor set
sienaCompositionChange(changelist, nodeSet = "Actors", option = 1) sienaCompositionChangeFromFile(filename, nodeSet = "Actors", fileobj=NULL, option = 1)
changelist |
A list with an entry for each actor in the node set. Each entry a vector of numbers (may be as characters) indicating intervals during which the corresponding actor was present. | ||||||||||
filename |
Name of file containing change information. One line per actor, each line a series of space delimited numbers indicating intervals. | ||||||||||
fileobj |
The result of readLines on filename.
| ||||||||||
nodeSet |
Character string containing the name of a Siena node set. | ||||||||||
option |
Integer controlling the processing of the network entries for the
actors not currently present. Values (default is 1)
|
Intervals are treated as closed at each end.
An object of class "compositionChange", a list of numeric vectors, with attributes:
NodeSet |
Name of node set |
Option |
Option |
Ruth Ripley
See http://www.stats.ox.ac.uk/~snijders/siena/
clist <- list(c(1, 3), c(1.4, 2.5)) #or clist <- list(c('1', '3'), c('1.4', '2.5')) compChange <- sienaCompositionChange(clist) ## Not run: filedata <- c("1 3", "1.4 2.5") write.table(filedata, "cc.dat",row.names=FALSE, col.names=FALSE, quote=FALSE) ## file will be ## 1 3 ## 1.4 2.5 compChange <- sienaCompositionChangeFromFile("cc.dat") ## End(Not run)