Hi there,
In my databank, I have a variable that tells me about a departure time (the variable is named hredep). The data is written like this: hhmm [h for hour, m for minutes).
So, for a departure time of 14:45, my data given in hredep is 1445.
I need to create a new variable that separate the last two digits, so I could obtain only the minutes. So in my exemple above I would have the data 45.
How can i do this? And what if I want the hour, so the first the numbers instead?
Thank you very much!
Maxime
0 Response to Generate a new variables, with the last two numbers of another variable
Post a Comment