Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re: geocode missing tempfile


From   "Dimitriy V. Masterov" <dvmaster@gmail.com>
To   Statalist <statalist@hsphsun2.harvard.edu>
Subject   st: Re: geocode missing tempfile
Date   Thu, 9 Jun 2011 14:13:49 -0400

The missing tempfile problem with geocode appears to be caused by the
presence of invisible ASCII characters (like tabs or ^I or Â) in the
address column of the csv file I was reading into Stata. When the csv
file is open in Excel or a text editor, they look like blank spaces
and pasting the particular address into Google Earth works just fine.
When the address is stored as a string in Stata, however, geocode will
crash.

Using charlist on the address variable(s) in Stata (or hexdump on the
whole csv file) will let you know which ones are causing the problem
and you can use filefilter to get rid of them in the csv file. Geocode
should work fine after that.

DVM

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index