Financial Time Series |
 |
ascii2fts
Create financial time series object from ASCII data file
Syntax
tsobj = ascii2fts(filename, descrow, colheadrow, skiprows)
Arguments
filename
|
ASCII data file
|
descrow
|
(Optional) Row number in the data file that contains the description to be used for the description field of the financial time series object.
|
colheadrow
|
(Optional) Row that has the column headers/names.
|
skiprows
|
(Optional) Scalar or vector of consecutive row numbers to be skipped in the data file.
|
Description
tsobj = ascii2fts(filename, descrow, colheadrow, skiprows)
creates a financial time series object tsobj
from the ASCII file named filename
. The general format of the text data file is:
- May contain header text lines
- May contain column header information. The column header information must immediately precede the data series columns.
- Leftmost column must be the date column.
- Dates must be in a valid date string format:
'ddmmmyy' or 'ddmmmyyyy'
'mm/dd/yy' or 'mm/dd/yyyy'
'dd-mmm-yy' or 'dd-mmm-yyyy'
Each column must be separated either by spaces or a tab.
Example
dis = ascii2fts('disney.dat', 1, 3, 2)
See Also
fints
| adosc | | bollinger |  |