Reading PSV (pipe-separated) file or string

We could use read.table to read *.psv file.

read.table("myfile.psv", sep = "|", header = FALSE, stringsAsFactors = FALSE)

There might be many different representations of psv file, but when it comes to data mining, I think it might be more about “pipe separated” file. The data in the file is separated by “|”

Leave a Comment