问题
I have just received a data file, whose extension is "*.psv". After doing a bit of research, I don't know how to open it R.
回答1:
Thanks to hrbrmstr, I found the answer. We could use read.csv to read *.psv file.
read.csv("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 "|"
来源:https://stackoverflow.com/questions/28966203/reading-psv-pipe-separated-file-or-string