Reading in vector of words separated by spaces in R [closed]

You should use readLines instead of read.table. (And it really makes no sense to use “\n” as a separator since it is already the end-of-line marker.)

 Names=readLines(path2)
 str(Names)

Leave a Comment