Import ASCII file into R
问题 I have several ASCII files I Need to Import into R with return data for different asset classes. The structure of the ASCII files is as follows (with 2 sample data) How can I Import this? I wasn't succesfull with read.table, but I would like to have it in a data.frame Format. <Security Name> <Ticker> <Per> <Date> <Close> Test Description,Test,D,19700101,1.0000 Test Description,Test,D,19700102,1.5 回答1: If you really want to force the column names into R, you could use something like that: #