Dear All, I am not very familiar with ASCII file format, and now I am trying to export R data frame into STATA When I run write.dta command, there is a warning below appear. 5: In abbreviate(ll, 80L) : abbreviate used with non-ASCII chars Do you have any suggestion to fix it? All the bests [[alternative HTML version deleted]]
On 18/05/2013 14:05, Niklas Fischer wrote:> Dear All, > > I am not very familiar with ASCII file format, and now I am trying toASCII is an encoding, not a file format.> export R data frame into STATA > When I run write.dta command, there is a warning below appear. > > 5: In abbreviate(ll, 80L) : abbreviate used with non-ASCII chars > > Do you have any suggestion to fix it?Use ASCII characters: that *was* on the help page!> > All the bests > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org 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. >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Presumably it means what it says : You have a non-ASCII character in the dataset. Any accented character, for example, is going to be outside the basic ASCII character set. Examples mydata <- data.frame(?tt=1:10) # error newdata <- data.frame(ntt=1:10) # no error See http://www.theasciicode.com.ar/ for a list write.dta(mydata, file = "stata.dta") John Kane Kingston ON Canada> -----Original Message----- > From: niklasfischer980 at gmail.com > Sent: Sat, 18 May 2013 15:05:57 +0200 > To: r-help at r-project.org > Subject: [R] exporting data into STATA > > Dear All, > > I am not very familiar with ASCII file format, and now I am trying to > export R data frame into STATA > When I run write.dta command, there is a warning below appear. > > 5: In abbreviate(ll, 80L) : abbreviate used with non-ASCII chars > > Do you have any suggestion to fix it? > > All the bests > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org 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.____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!