Description Usage Arguments Details Value Examples
'ICON::get_data' returns data frames that also have class 'ICON'. However, conducting network analysis could require using another R package and its associated network structure and class. The 'as_igraph' function converts 'ICON' objects to 'igraph' objects. It allows 'ICON' users to take full advantage of the functionality provided in the 'igraph' package.
1 |
x |
edgelist of classes 'ICON' and 'data.frame' to be coerced |
directed |
'TRUE' if network has directed edges; 'FALSE' otherwise |
weighted |
'TRUE' if network has weighted edges; 'FALSE' otherwise |
Note that if the 'ICON' object has more than two columns, 'as_igraph' assumes that the third column is numeric and represents edge weights. Use 'weighted = FALSE' to ignore existing edge weights and re-order columns if you would prefer another column be used for edge weights.
an 'igraph' object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.