buildNetwork: Convert publication data to network data

Description Usage Arguments Warning Examples

Description

This function constructs a docNetwork object from a docList object. It will extract the edges and persons, build the graph, and detect the communities within that graph. The default type of community detection is walktrap.

Usage

1
buildNetwork(dl, edges = NULL, persons = NULL)

Arguments

dl

A docList object that contains the index and other meta-data for the corpus that is to be networked.

edges

A string that holds the full path to a csv file with edge data in it. Note that, by default, this parameter is set to NULL, which tells htn to infer connections from bibliographic data in the docList index. If you want to supply your own data in .csv, it must be in a format igraph can read, with "source" and "target" columns clearly labeled. See igraph documentation for using your own data.

persons

A string that holds the full path to a csv file with persons data in it. Note that, by default, this parameter is NULL and draws from the EBBO-TCP data included with htn.

Warning

Generally, this function is meant to be used with tei2r and the EEBO-TCP data, from which htn includes data about co-publication. It's very good at taking the EEBO-TCP catalogue or some subset of that catalogue and performing network analysis. Using htn for any other collection would require compiling an appropriate edge list and personography.

Examples

1
2
3
dnet = buildNetwork(dl)
dnet = buildNetwork(dl, edges="path/to/edges.csv", persons="path/to/persons.csv")
 

michaelgavin/htn documentation built on May 22, 2019, 9:50 p.m.