search for: frontslashes

Displaying 1 result from an estimated 1 matches for "frontslashes".

2007 Oct 26
1
Problems with scan() in a tab-sep .txt file with cells that have '///' (three frontslashes)
Hello all, I'm using the following scan() parameters on a tab-separated text file that was generated by R. temp_file <- scan(file = outfile, sep="\t", what = character(), skip = 1, nlines = 1) The problem is that within some cells, there are cases where there are three frontslashes ( /// ). However, the file itself is tab-separated, and the exact problem is that even if I specify sep="\t" in the argument to scan(), whenever it encounters a /// it overrides the tab separation, and uses the /// as the separator. Then within that column, I see a bunch of /t in the outp...