Hi,
I want to import a file as an array of strings. The file is a text file and looks like this
2019:09:16 0.89971126
2019:09:17 1.35526464
2019:09:19 1.61615185
2019:09:22 3.49013209
2019:09:23 0.73792783
I’ve tried this code
dec rect[strings] test(5,2)
open data "file.txt"
read(unit=data) test
close data
Thanks,
Carl
Import as rect[strings]
For questions and discussion related to reading in and working with data.
Return to “Data: Reading, Writing, Transforming”
Jump to
- News and Announcements
- ↳ Forum Announcements
- ↳ RATS Product Announcements
- ↳ Newsletters
- Courses and Seminars
- ↳ Course Announcements
- ↳ ARCH GARCH and Volatility
- ↳ RATS Programming Manual
- Procedures, Examples, and Sample Code
- ↳ RATS Procedures
- ↳ Examples and Sample Code
- ↳ Looking for Code?
- General RATS Discussions
- ↳ Data: Reading, Writing, Transforming
- ↳ Graphics, Reports, and Other Output
- ↳ Help With Programming
- ↳ Other RATS Usage Questions
- ↳ RATS for Teachers & Students
- ↳ Tips and Tricks
- ↳ Suggestion Box
- Econometrics Issues
- ↳ VARs (Vector Autoregression Models)
- ↳ ARCH and GARCH Models
- ↳ State Space Models/DSGE
- ↳ Structural Breaks and Switching Models
- ↳ Panel Data
- ↳ Other Time Series Analysis
- ↳ General Econometrics
- CATS (Cointegration Analysis)
- ↳ CATS News and Announcements
- ↳ CATS Questions