show_window: Show time window of document pairs

View source: R/networks.r

show_windowR Documentation

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)

Arguments

g

A document similarity network, as created with newsflow_compare or create_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.

Value

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

Examples

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

RNewsflow documentation built on May 31, 2023, 6:53 p.m.