Learn R Programming

RNewsflow (version 1.2.6)

show_window: Show time window of document pairs

Description

This function aggregates the edges for all combinations of attributes specified in `from_attribute` and `to_attribute`, and shows the minimum and maximum hour difference for each combination.

Usage

show_window(g, to_attribute = NULL, from_attribute = NULL)

Value

A data.frame showing the left and right edges of the window for each unique group.

Arguments

g

A document similarity network, as created with newsflow.compare or document.network

to_attribute

The vertex attribute to aggregate the `to` group of the edges

from_attribute

The vertex attribute to aggregate the `from` group of the edges

Details

The filter.window function can be used to filter edges that fall outside of the intended time window.

Examples

Run this code
data(docnet)
show_window(docnet, to_attribute = 'source')
show_window(docnet, to_attribute = 'sourcetype')
show_window(docnet, to_attribute = 'sourcetype', from_attribute = 'sourcetype')

Run the code above in your browser using DataLab