I'm trying to read a lot of txt files that are hash tag delimited into R.
For example:
Dora#58529#26/04/2012#
Dora#58529#26/04/2012#
Dora#58529#26/04/2012#
Dora#58529#26/04/2012#
Dora#58529#26/04/2012#
Dora#58529#26/04/2012#
Dora#58529#26/04/2012#
Dora#58529#26/04/2012#
Dora#58529#26/04/2012#
When I try the following only the first column is loaded, probably because everything after the first hash tag is interpreted as a comment.
(df <- read.table("https://dl.dropboxusercontent.com/u/64191100/hashtagdel.txt",sep="#"))
Output:
# V1
# 1 Dora
# 2 Dora
# 3 Dora
# 4 Dora
# 5 Dora
# 6 Dora
# 7 Dora
# 8 Dora
# 9 Dora
I do not want to change the hash tag in every file by another character (I didn't create the files). Does somebody know a work-around?