I have a problem using the solution to this question:
Why the field separator character must be only one byte?
I have a file with columns delimited with ~~~, and of course read.table fails with the error invalid 'sep' value: must be one byte. I googled and found the above question, which successfully reads the file into a character matrix.
However, I would like to now convert this character matrix into a data frame, assigning the type to each column automatically, with rules determined as if read.table had worked on the original file, e.g. dates and strings get converted to factors, etc.
readLines()and then split each line usingstrsplit()on the~~~delimeter. But this would not necessarily format the data as you want it. - Tim Biegeleisenas.data.frameit, and then cast the columns as you want. - Tim Biegeleisenread.table- Alexread.table? - Adam Quek