Along with txt_to_DF(), this is one of the crucial NovNet utilities. This function accepts objects from Txt_to_df() It requires a) char.data.df b) text.uniq.v And returns: 1) an edgelist as a dataframe 2) an igraph object
1 2 3 |
data |
A data object of the format returned by txt_to_Df(). Default = novel.dat. |
context |
Counting number. How many words from each name should the function seek others? Default = 15. |
multiplex |
Logical vector of length one. Return a multiplex graph? Default = FALSE. |
token.threshold |
Length-one numerical vector. Removes characters with token count < x from graph. Default = 1. |
metadata.off |
Default = NA. Expects a length-two vector of c("meta", "VALUE"), or matrix of vectors, to cull characters by metadata category. Useful for removing non-characters, generating subgraphs by gender, etc... |
sample |
Default = FALSE. A logical vector indicating whether the .txt should be randomized (i.e. words scrambled). Useful for checking whether modularity results are statistically meaningful. |
noisy |
Defaults to TRUE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.