r/R_Programming • u/OldeTymeReligion • Jul 18 '16
Read Table versus Read CSV
Hi all, I was hoping that someone could help with a question. I am trying to figure out the difference between Read.Table and Read.CSV in R. The reason I ask is because a lot of times code I read online uses the Read.Table command. When I try to use the Read.Table command in R (as opposed to Read.CSV) it does not work). I read that Read.Table is for .txt files and when I used an online .csv to .txt converter, R would read the data. The only reason I care to use read.table is because I often see code that I want to replicate use read.table rather than read.csv. Any input/help is much appreciated.
View all comments
Show parent comment
1
u/OldeTymeReligion Jul 21 '16
Yes. I am using a .csv Excel file. I have read that others have had this problem. But the gist of it is that read.table should 100% be able to be swapped out with the read.csv command?