[R] EOF within quoted string

Mohan.Radhakrishnan at cognizant.com Mohan.Radhakrishnan at cognizant.com
Thu Aug 10 14:59:08 CEST 2017


Hi,

Reading http://ssc.wisc.edu/~ahanna/20_newsgroups.csv after downloading it using

data <- read.csv("20_newsgroups.csv",header=TRUE)

throws this.

Warning message:
In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  :
  EOF within quoted string

So, for example, the first line in the file is this. This column contains only such text. Is there a way read it ?

From: cubbie at garnet.berkeley.edu () Subject: Re: Cubs behind Marlins? How? Article-I.D.: agate.1pt592$f9a Organization: University of California, Berkeley Lines: 12 NNTP-Posting-Host: garnet.berkeley.edu   gajarsky at pilot.njin.net writes:  morgan and guzman will have era's 1 run higher than last year, and  the cubs will be idiots and not pitch harkey as much as hibbard.  castillo won't be good (i think he's a stud pitcher)         This season so far, Morgan and Guzman helped to lead the Cubs        at top in ERA, even better than THE rotation at Atlanta.        Cubs ERA at 0.056 while Braves at 0.059. We know it is early        in the season, we Cubs fans have learned how to enjoy the        short triumph while it is still there.

Thanks,
Mohan
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.

	[[alternative HTML version deleted]]



More information about the R-help mailing list