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
Using Kappa / Weighted KappaDear all Please advise if I can use kappa with this data structure: With two raters (fc and lp) sco…
Structural Equation Modelling (SEM) using STATAHi, I want to analyze my data using SEM in stata. This is my model: Array Health variable consist of…
Merge while keeping value labels in master and using dataset unchangedHello! I am trying to merge two datasets from a survey which contains household ((HH) level data wi…
Combining summary statistics and correlation matrixHi everyone, I need to create a table combining summary statistics and correlation matrix as a part …
How to deal with "factor variable and time-series operators not allowed "when I run gllamm command?Hello all, How can I include dummy variables in gllamm?Or how can I change factor variales into dumm…
Subscribe to:
Post Comments (Atom)
0 Response to destring before append
Post a Comment