Hi,
I am trying to save changes in a CSV file in STATA. I have imported the file, wrote the commands and then exported it.
I have used the following commands:
import delimited "/Users/vardanyang/Dropbox/Irish migration - NSV/Ellis Island/Distances_1.csv"
split v1, destring
rename v11 ID_A
rename v12 First_Name_A
rename v13 Last_Name_A
rename v14 ID_B
rename v15 First_Name_B
rename v16 Last_Name_B
rename v17 Age_Dist
rename v18 Dist_FN
rename v19 Dist_lN
export delimited "/Users/vardanyang/Dropbox/Irish migration - NSV/Ellis Island/Distances_1.csv"
After this when I open the csv file in the computer, the changes are saved but when I import it in STATA, the changes are not saved.
Can you please let me know how to proceed so that the changes are saved?
Thanks,
Ciara
Related Posts with Saving CSV files in Stata
replacing values of a new variable with valid values of other variablesHi, I would like to generate a new variable and fill the new variable with the valid values from a l…
Panel data: Multiple observations per yearHi, I'm new to STATA and its commands so excuse my inexperience. My dataset contains multiple obser…
smoothing linesDear Stata users, I am using Stata 15 and trying to plot changes in sb1 vs years by age-groups (4 d…
How to extract the last seven digits of nine-digits numbers?I'm having problems trying to extract digits from numbers. My dataset has a variable called "munici…
address the endogeneity issueHi all! I want to address the endogeneity issue in my paper. I have panel data (gvkey and fyear). …
Subscribe to:
Post Comments (Atom)
0 Response to Saving CSV files in Stata
Post a Comment