ts_datastats: To create a time series of a dataframe

Description Usage Arguments Value Examples

View source: R/functions.R

Description

This function allows to create a time series object from a dataframe using the R-package 'stats'.

Usage

1
ts_datastats(dataset = NULL, start_date = c(2013, 3), end_date = c(2019, 4))

Arguments

dataset

A dataframe.

start_date

A numeric vector of two elemets, year and quarter, respectively.

end_date

A numeric vector of two elemets, year and quarter, respectively.

Value

A class 'ts' object.

Examples

1
2
dataset<-data.frame('something'=c(...))
data_ts(dataset,start_date=c(2010,2),end_data=c(2020,4))

unimi-dse/9768672c documentation built on Feb. 16, 2020, 5:45 a.m.