sigmaNet icon indicating copy to clipboard operation
sigmaNet copied to clipboard

Added attribute, coordinates to node using R

Open SaharanAbhishek opened this issue 5 years ago • 0 comments

Suppose I have below dataframe for nodes:

Node ID xAxis yAxis Name City 1 0 10 20 John New York 2 1 11 21 Peter Paris 3 2 12 22 Tom London 4 3 13 23 Sam Los Angeles 5 4 14 24 Jack Tokyo

for edges

Edge Source Target 1 0 1 2 0 3 3 1 4 4 1 2 5 2 3 6 3 1 7 4 4

In javascript case (I have JSON instead of dataframe in this case), first I will loop through all nodes and create object for each node with attribute and then push same to nodes array, same for edges.

Now want to achive same through R.

Thanks

SaharanAbhishek avatar Apr 15 '20 07:04 SaharanAbhishek