Hello All,
I have a difficulty formating my year variable in my data set.
The data set is a huge table composed of different excel files the data of which was collected from different students. The problem is that the year-variable contains different formats of the date e.g. in the first 690 rows the year is listed as 1/1/2007 from the 691st row it is only 2007. I need to show only the year and ignore the day and month.
The solution should be a simply while loop but I couldn't figure it out.
Thank you in Advance
Dimitar
Related Posts with Format
Asdoc not applying weights in pwcorrI've been using asdoc to create a word document. I have several frequency and correlation tables tha…
Datepart/ClockpartHi everyone In my dataset I have a time variable. It is in format: %tcDay_Mon_DD_HH:MM:SS_CCYY (this…
PPML with unbalanced panel data, gaps in data, and data asymmetriesI wish to use ppml to estimate a structural gravity model for the years 2000-2016, for ~ 130 countri…
Graphing InteractionsHi all, We are wondering how to graph a 3-way interaction on stata? It is a continuous x continuous…
Generate surrounding observations based on observations of another variableHi there, I am trying to create new observations of a variable based on the observations of other v…
Subscribe to:
Post Comments (Atom)
0 Response to Format
Post a Comment