centrality.edgelist: Create a valued edgelist for 2-mode-network of people and...

Description Usage Arguments Value Author(s) Examples

Description

Create a valued edgelist for 2-mode-network of people and words.

Usage

1
centrality.edgelist(terms, apply.to, data.path, max.terms)

Arguments

terms

A character vector containing terms for which extract.commnet stored a network with file name net_terms.

apply.to

Whether the function should be applied to the terms in subjects or content.

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.

Value

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.

Author(s)

Angela Bohn angela.bohn at gmail.com

Examples

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/")

snatm documentation built on May 2, 2019, 5:01 p.m.