Description Usage Arguments Value Author(s) Examples
Create a valued edgelist for 2-mode-network of people and words.
1 | centrality.edgelist(terms, apply.to, data.path, max.terms)
|
terms |
A character vector containing terms for which |
apply.to |
Whether the function should be applied to the terms in |
data.path |
Base path for the mailing list data. Serialised R data structures are expected as data.path/commnet.terms/apply.to/net_term.rda. |
max.terms |
Upper bound on the number of terms; defaults to 20. |
A matrix with three columns. First colum contains authors, second column contains terms and third column contains line values representing the normalized degree rank of the author in the term's network.
Angela Bohn angela.bohn at gmail.com
1 2 3 4 5 6 7 8 | # Suppose net is the network of all people who used "hallo" in the content of the rhelp mailing list.
net <- matrix(c(0,2,0,1,0,1,0,3,0),nrow=3)
rownames(net) <- colnames(net) <- c("PersonA","PersonB","PersonC")
dir.create("rhelp")
dir.create("rhelp/commnet.terms")
dir.create("rhelp/commnet.terms/content")
save(net,file="rhelp/commnet.terms/content/net_hallo.rda")
centrality.edgelist("hallo", apply.to="content", data.path="rhelp/")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.