DSTimeSeriesDataInput | R Documentation |
This class is a supporting attribute for the DateInput property of the DSTimeSeriesRequestObject. It is used to supply the raw data for the timeseries.
DSTimeSeriesDataInput object
StartDate
A datetime value defining the start date for the timeseries.
EndDate
A datetime value defining the end date for the timeseries.
Frequency
The frequency of the timeseries. One of the DSUserObjectFrequency values defined in DSUserDataObjectBase.R
Values
An array of float values. Use NULL to represent NotANumber for non-trading days. Alternatively, if you set the DatastreamUserCreated_TimeSeries property useNaNforNotANumber as True, you can use float NaN values.
new()
DSTimeSeriesDataInput$new( startDate = NULL, endDate = NULL, frequency = DSUserObjectFrequency$Daily, values = NULL )
startDate
A datetime value defining the start date for the timeseries.
endDate
A datetime value defining the end date for the timeseries.
frequency
The frequency of the timeseries.
values
An array of float values
DSTimeSeriesDataInput object
clone()
The objects of this class are cloneable with this method.
DSTimeSeriesDataInput$clone(deep = FALSE)
deep
Whether to make a deep clone.
Datastream takes the StartDate, Frequency and Values properties defined here and creates the timeseries based only on these parameters.The EndDate is not actually used internally other than for logging purposes. The true end date is calculated based on the start date, frequency and the supplied list of values. Supply too few or too many values and the mainframe will accept them and set the end date accordingly based on the given frequency for the item.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.