hi i created two files in excel with a dbf format in a similar way. the first is opened in R, however, when i try to open the second. i received the following message: sites.can <- read.csv("SITES.csv") Error in read.table(file = file, header = header, sep = sep, quote = quote, : more columns than column names>The second file works with the same command larynx.can <- read.csv("LARYNX.csv")>SO, WHAT IS THE SOLUTIO???????????? Regards Ahmed --------------------------------- [[alternative HTML version deleted]]
ahmed el kenawy wrote:> hi > > i created two files in excel with a dbf format in a similar way. the first is opened in R, however, when i try to open the second. i received the following message: > > sites.can <- read.csv("SITES.csv") > Error in read.table(file = file, header = header, sep = sep, quote = quote, : > more columns than column names > > The second file works with the same command > larynx.can <- read.csv("LARYNX.csv") > > > SO, WHAT IS THE SOLUTIO????????????1. Please do not shout. 2. Please read the posting guide. 3. Please use a sensible subject. 4. Please read ?read.csv 5. You might want to check if the format of that csv files are really identical and check if the column names are strange (including comments or separators). If it still does not work, send us the first few lines of that file. We cannot look at it otherwise! Uwe Ligges> Regards > Ahmed > > > --------------------------------- > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Check out this recent thread: https://www.stat.math.ethz.ch/pipermail/r-help/2006-July/109731.html On 7/22/06, ahmed el kenawy <elkenawy_ahmed at yahoo.co.uk> wrote:> hi > > i created two files in excel with a dbf format in a similar way. the first is opened in R, however, when i try to open the second. i received the following message: > > sites.can <- read.csv("SITES.csv") > Error in read.table(file = file, header = header, sep = sep, quote = quote, : > more columns than column names > > > The second file works with the same command > larynx.can <- read.csv("LARYNX.csv") > > > > SO, WHAT IS THE SOLUTIO???????????? > > Regards > Ahmed > > > --------------------------------- > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >