Description Usage Format Details See Also Examples
This dataset contains a faux social network created for testing and examples.
1 | data("faux.network")
|
A list with two components:
a data frame, the first column giving ID numbers for the nodes in the social network and the remaining columns giving continuous or discrete (not categorical) traits for each node.
a matrix of 0's and 1's, the adjacency matrix for the social network.
This faux social network contains 1000 nodes and 5000 edges with each node having three binary traits labeled "X", "Y", and "Z".
1 2 3 4 5 | ## load data
data(faux.network)
## draw RDS from network
samp <- sample.RDS(faux.network$traits, faux.network$adj.mat, 100, 2, 3, c(0,1/3,1/3,1/3), TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.