make_projection {surveygraph} | R Documentation |
Outputs the survey projection onto the agent or symbolic layer
Description
make_projection()
outputs the agent or symbolic network corresponding
to a survey, i.e. the row or column projection.
Usage
make_projection(
data,
layer,
threshold_method = NULL,
method_value = NULL,
centre = NULL,
similarity_metric = NULL
)
Arguments
data |
A data frame corresponding to a survey |
layer |
A string flag specifying which layer to project
|
threshold_method |
A string flag specifying how edges are selected in the network representation.
|
method_value |
A utility variable that we interpret according to the
|
centre |
If |
similarity_metric |
This currently has just one allowed value, namely the Manhattan distance, which is the default. |
Value
A data frame corresponding to the edge list of the specified network. It contains three columns named
-
u
, the first node adjacent to the edge -
v
, the second node adjacent to the edge, and -
weight
, the similarity between nodesu
andv
Examples
S <- make_synthetic_data(20, 5)