[R] How can I read the text or character string from a txt file?

2012-05-02 Thread jpm miao
Hello, I have a large number of time series, which needs to be transformed by log or difference. Some of them are just processed by level (LV) without any transformation. For that purpose, I produce a text file (.csv or .xls) as follows: DLN DLNDLN LV LV LV... How can I read the

Re: [R] How can I read the text or character string from a txt file?

2012-05-02 Thread Jim Holtman
If the symbols are separated by spaces, try: scan(yourFile, what = '') Sent from my iPad On May 2, 2012, at 2:36, jpm miao miao...@gmail.com wrote: Hello, I have a large number of time series, which needs to be transformed by log or difference. Some of them are just processed by level