#Example of getting a list of motif frequencies in a book Corpus
library(gmining)
#Load small book Corpus containing 2 books
data(corpus,package="gmining")
inspect(myCorpus)
#creates book network graph list
graphs <- corpus_to_graphs(myCorpus)
#create list of ternary motif frequencies for each book
list_freq_motifs <- lapply(graphs, motifs, size = 3)
save(list_freq_motifs, file = "data/freq_motifs.RData")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.