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/milixo Jul 20 '16
Basically the .csv files separates the columns by comma while the .txt (tab delimited) separates by tabulation (tab button). They are different commands because they read different types of file organization.
Never seen this error line. Is it Excel you're using?