Learn R Programming

daltoolbox (version 1.1.727)

ts_head: Extract the First Observations from a ts_data Object

Description

Returns the first n observations from a ts_data

Usage

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

Value

returns the first n observations of a ts_data

Arguments

x

ts_data object

n

number of rows to return

...

optional arguments

Examples

Run this code
data(sin_data)
data10 <- ts_data(sin_data$y, 10)
ts_head(data10)

Run the code above in your browser using DataLab