todaily
Convert to daily
todaily
is not recommended. Use convert2daily
instead.
Syntax
newfts = todaily(oldfts) newfts = todaily(oldfts,'ParameterName',ParameterValue, ...)
Arguments
| Financial time series object |
Description
newfts = todaily(oldfts)
converts a financial time series of any
frequency to a daily frequency. todaily
uses
holidays.m
to determine valid trading days.
Note
If oldfts
contains time-of-day information,
newfts
displays the time-of-day as '00:00'
for
those days that did not previously exist in oldfts
.
Empty ([ ]
) passed as inputs for parameter pair values for
todaily
trigger the use of the defaults.
newfts = todaily(oldfts,'ParameterName',ParameterValue, ...)
accepts
parameter name/parameter value pairs as input, as specified in the following table.
Parameter Name | Parameter Value | Description |
---|---|---|
|
| Returns the value at specific dates/times. No data manipulation occurs. |
|
| This mode is compatible with previous versions of this function (Version 2.1.x and earlier). It returns a five-day business week that starts on Monday and ends on Friday. |
Note If you set | ||
|
| Generates a financial time series that ranges from (or between)
the first date to the last date in |
|
| (Default) Generates a daily financial time series that ranges from
the first date to the last date in NYSE market closures, holidays, and weekends are observed if
|
|
| (Default) Displays all daily dates between the start and end dates
of Note The default is to create a time series with every date at the
specified periodicity, which is with
|
DateFilter |
| Displays only dates that exist in |
|
| Returns only the observation that occurs at the first (earliest) time for a specific date. |
TimeSpec |
| (Default) Returns only the observation that occurs at the last (latest) time for a specific date. |
| Vector of dates specifying an alternate set of market closure dates. | |
AltHolidays |
| Excludes all holidays. |
| Vector of length 7 containing 0's and 1's. The value
|