Hi all,
So I am trying to append 3 excel sheets into one Stata file but I would need to destring one of the sheets (Sheet3) first in order to append. I am using the xls2dta command to append but it says "previous command was not xls2dta". What should I do?
This is what I did:
ssc install xls2dta
xls2dta ,allsheets : import excel using "/Users/xyz/Downloads/list_of_treaties.xlsx", firstrow clear
use list_of_treaties_3.dta
destring YEAR YEAR_START YEAR_VALID, replace force
xls2dta ,clear : append
Thank you!
Related Posts with destring before append
Data visualization - How to break a label on tline into multiple lines?Hello, Please see my current graph. I would like to split the "Arab Spring" label in two lines M…
Generating week IDs based on fiscal yearsI am quite new to stata and struggling to generate weeks based on fiscal year start and end dates. S…
Testing proportional hazard assumption in multilevel parametric event settingHello everyone, I am conducting a recurrent event-history analysis using the mestreg command with e…
Logit regression, cross sectional data, country, industry and year fixed effectI face a problem in understanding the structure of my data and in estimating. For my study, I use th…
How to refer to specific pairs of observations-variables using locals, ex: "`=price[make == "AMC Concord"]'"Dear all, I was trying to automate the creation of a two-sided bar graph and then realized that the…
Subscribe to:
Post Comments (Atom)
0 Response to destring before append
Post a Comment