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 on April 23, and its replacement, is already up and running.

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

Re: st: From: Abhimanyu Arora <>

From   Abhimanyu Arora <>
Subject   Re: st: From: Abhimanyu Arora <>
Date   Mon, 2 Apr 2012 10:36:50 +0200

Hi Nick
Thanks for your email.
The problem as I perceive is that due to that line in the code -save
`file', replace- stata has changed my original *.csv files. Here is
one example on what a structured *.csv has been reduced to.
Before running the loop it was a table with numbers, the first column
being the time variable and each subsequent column being a time
I was wondering whether there is a way to make stata reverse the process.
Hoping against hope

On Mon, Apr 2, 2012 at 10:28 AM, Nick Cox <> wrote:
> Without information on the _precise_ problem here, I think we are
> reduced to guessing. My guess is that you need to go back to the
> original *.csv.
> What "strange characters"? What does "not recognizable completely"?
> Nick
> On Mon, Apr 2, 2012 at 9:01 AM,  <> wrote:
>> My data was in around 50 csv files in one folder. I wanted to merge
>> the data into a single stata dataset. So I used the following commands
>> in order to first create 50 stata datasets to be merged.
>> fs
>> foreach file in `r(files)' {
>> insheet using `file'
>> save `file',replace
>> clear
>> }
>> I now discover that the csv files have strange characters and the data
>> is not recognizable completely. Do you think it would be possible to
>> retrieve my data?
> *
> *   For searches and help try:
> *
> *
> *

*   For searches and help try:

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