head.dynet_metric: First rows of a temporal measure

View source: R/result.R

head.dynet_metricR Documentation

First rows of a temporal measure

Description

Truncates the rows without rewriting what the measure is. The printed header still describes the series the rows came from, and a ⁠first n of N rows⁠ line records the truncation.

Usage

## S3 method for class 'dynet_metric'
head(x, n = 6L, ...)

Arguments

x

A dynet_metric.

n

Number of rows to keep. Defaults to six.

...

Passed to the default method.

Value

A dynet_metric with at most n rows, carrying the source counts so its header stays true to the series.

Examples

dn <- dynet(school_contacts)
degree <- centrality_series(dn, step = 4, window = 4)
head(degree)

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