df_to_ts: Convert a 'data.frame' into a 'ts' time series object

Description Usage Arguments Value Author(s)

Description

Convert a data.frame into a ts time series object

Usage

1
2
df_to_ts(data, interval = "day", date.column = NULL, value.column = NULL,
  start = NULL, end = NULL)

Arguments

data

data to convert

interval

data interval (day, week, month, quarter, year, or an arbitrary number)

date.column

date column; if not given will be guessed as the first column of class Date; if not given and no column is of class Date, will quit with an error

value.column

value column; if not given, will assume that dates are individual data per date (which will be added up)

start

starting date

end

end date

Value

A time series (ts) object

Author(s)

Sebastian Funk


sbfnk/dynmod documentation built on May 29, 2019, 3:21 p.m.