createEdgelist {MoNAn} | R Documentation |
createEdgelist
Description
Creates an edgelist object, which is the standard format of the outcome to be modelled by MoNAn.
Usage
createEdgelist(el, nodeSet = NULL, nodes = NULL, edges = NULL)
monanDependent(el, nodeSet = NULL, nodes = NULL, edges = NULL)
Arguments
el |
An edgelist in the form of a matrix with two columns and N rows. The first column indicates the origin of a person/resource, the second row the destination. Each row represents one observation. |
nodeSet |
The nodesets of the edgelists. This is a vector with three entries referencing the names of the nodesets of locations and individuals of the form c(location, location, individuals). |
nodes |
Alternative way to specify the nodeSet by naming nodes and edges: nodes denote the locations in the edgelist |
edges |
Alternative way to specify the nodeSet by naming nodes and edges: edges denote the individuals in the edgelist |
Value
An object of class "edgelist.monan".
See Also
Examples
# create an object of class edgelist.monan
transfers <- createEdgelist(mobilityEdgelist, c("organisations", "organisations", "people"))
[Package MoNAn version 1.0.0 Index]