doc_group: Construct network of documents based on keyword co-occurrence
Description
Create a tbl_graph(a class provided by tidygraph) from the tidy table with document ID and keyword.
Each entry(row) should contain only one document and keyword in the tidy format.This function would
group the documents.
A tbl_graph, representing the document relation network based on
keyword co-occurrence.
Arguments
dt
A data.frame containing at least two columns with document ID and keyword.
id
Quoted characters specifying the column name of document ID.Default uses "id".
keyword
Quoted characters specifying the column name of keyword.Default uses "keyword".
com_detect_fun
Community detection function,provided by tidygraph(wrappers around clustering
functions provided by igraph), see group_graph to find other optional algorithms.
Default uses group_fast_greedy.
Details
As we could classify keywords using document ID, we could also
classify documents with keywords. In the output network, the nodes are documents
and the edges mean the two documents share same keywords with each other.