I was trying to select a single layer when writing down a 3 layer network, but the option seems not to be effective at all.
More specifically, trying to select just layer 3 with the command:
results in a network which appears to have the same edges as the input one (layers="3" gives the same result, while layers=character(3) returns a "cannot find layer").
Moreover, the resulting "LAYERS" section in the preamble has a weird syntax, e.g., from the one in the original net:
Hi,
I was trying to select a single layer when writing down a 3 layer network, but the option seems not to be effective at all. More specifically, trying to select just layer 3 with the command:
write.ml(net, "partialFile.mpx", format="multilayer", layers=3)
results in a network which appears to have the same edges as the input one (layers="3" gives the same result, while layers=character(3) returns a "cannot find layer").
Moreover, the resulting "LAYERS" section in the preamble has a weird syntax, e.g., from the one in the original net:
LAYERS
1,UNDIRECTED 2,UNDIRECTED 3,UNDIRECTED
you obtain:
LAYERS
3,3,UNDIRECTED 2,2,UNDIRECTED 1,1,UNDIRECTED 3,2,UNDIRECTED 3,1,UNDIRECTED 2,3,UNDIRECTED 2,1,UNDIRECTED 1,3,UNDIRECTED 1,2,UNDIRECTED
Thank you for your help, Roberto