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
Difference-in-differences WITHOUT matched sampleHello helpful list, I have a sample of companies where each company was treated in a single year so…
Independent Count VariablesWhat are the methodological concerns with regards to using Poisson distributed count variables as an…
How to compute difference in years between daily dates?I have daily stock data, inputted and formatted properly for stata. I wish to calculate the return o…
Summation by month + yearHi, I have converted a string variable called last_activity containing dates into a date formatted …
keeping only some values from string variablesHi, I have a set of 24 variables reporting information for some treatments for a sample of patients.…
Subscribe to:
Post Comments (Atom)
0 Response to Format
Post a Comment