Create a time series

You can use several methods to create an instance of a time series, depending on whether there is existing data to load and, if so, the format of that data.

The following table lists the methods for creating and populating a time series.
Table 1. Methods for creating time series
Task Method
Create an empty time series
  • The TSCreate function (regular time series)
  • The TSCreateIrr function (irregular time series)
Create a time series with metadata
  • The TSCreate function with the metadata parameter (regular time series)
  • The TSCreateIrr function with the metadata parameter (irregular time series)
Create and populate a time series
  • The TSCreate function with the set_ts argument (regular time series)
  • The TSCreateIrr function with the set_ts argument (irregular time series)
  • The time series input string in an INSERT statement
  • The TSCreateVirtualTab procedure with the NewTimeSeries parameter
  • A loader program with the TSL_SetNewTS function
  • The output of a function that manipulates existing time series data
Create a hertz time series
  • The TSCreateIrr function with the hertz parameter
  • The time series input string in an INSERT statement
  • The TSCreateVirtualTab procedure with the NewTimeSeries parameter
  • A loader program with the TSL_SetNewTS function
Create a compressed time series
  • The TSCreateIrr function with the compression parameter
  • The time series input string in an INSERT statement
  • The TSCreateVirtualTab procedure with the NewTimeSeries parameter
  • A loader program with the TSL_SetNewTS function