Skip to contents

Splits a database according to one (or more) date

Usage

break_data(x, break_dates, left = TRUE, names = NULL, ...)

Arguments

x

a ts or mts object to split

break_dates

the date(s) at which you want to divide the data

left

logical. By default set to TRUE, i.e. the breakdate is the end date of each subcolumn

names

optional vector containing the names of the variables used to build the splitted data. By default the function try to guess the names from the x parameter.

...

other unused arguments

Value

a mts containing as many times more data columns than breakdates