d = data.frame(text = c('a b c d e',
'e f g h i j k',
'a b c'),
date = as.POSIXct(c('2010-01-01','2010-01-01','2012-01-01')))
tc = create_tcorpus(d)
g = compare_documents(tc)
igraph::get.data.frame(g)
g = compare_documents(tc, measure = 'overlap_pct')
igraph::get.data.frame(g)
g = compare_documents(tc, date_col = 'date', hour_window = c(0,36))
igraph::get.data.frame(g)
Run the code above in your browser using DataLab