clear_observations: Restore implicit observation support

View source: R/support-edit.R

clear_observationsR Documentation

Restore implicit observation support

Description

Restore implicit observation support

Usage

clear_observations(dn)

Arguments

dn

A temporal network.

Value

A new dynet object, class c("dynet", "netobject", "cograph_network"), observed continuously from its earliest raw start through its latest raw end. Every explicit observation field is dropped from the metadata and the bin count is recomputed over the raw range; spells and attributes are untouched. Safe on a network that never had explicit observations, which is returned with only its recorded call changed.

Examples

dn <- dynet(school_contacts)
first_week <- set_observations(dn, start = 0, end = 7)
restored <- clear_observations(first_week)
restored

Dynet documentation built on Oct. 7, 2026, 5:08 p.m.