powered by
ts_data
Return the first n observations from a ts_data.
ts_head(x, n = 6L, ...)
The first n observations of a ts_data (as a matrix/data.frame).
ts_data object
number of rows to return
optional arguments
data(tsd) data10 <- ts_data(tsd$y, 10) ts_head(data10)
Run the code above in your browser using DataLab