ts_head: Extract the First Observations from a 'ts_data' Object

View source: R/ts_data.R

ts_headR Documentation

Extract the First Observations from a ts_data Object

Description

Return the first n observations from a ts_data.

Usage

ts_head(x, n = 6L, ...)

Arguments

x

ts_data object

n

number of rows to return

...

optional arguments

Value

The first n observations of a ts_data (as a matrix/data.frame).

Examples

data(tsd)
data10 <- ts_data(tsd$y, 10)
ts_head(data10)

tspredit documentation built on Feb. 11, 2026, 9:08 a.m.