Hello everyone,
I want to separate one variable into two. My initial variable "h_m" which is built (YYYYMM) should be separated into two new variable "year" (YYYY) and a new variable "month" (MM)
2nd question: I want to do this to merge data with year as key variable since the months differ. Is there a way to apply this to other datasets with the same h_m variable in one take?
The variable is a type "double"
Format %10.0g
Since my data is huge I cannot use dataex and will add a screenshot :
Thank you a lot for your help
I want to separate one variable into two. My initial variable "h_m" which is built (YYYYMM) should be separated into two new variable "year" (YYYY) and a new variable "month" (MM)
2nd question: I want to do this to merge data with year as key variable since the months differ. Is there a way to apply this to other datasets with the same h_m variable in one take?
The variable is a type "double"
Format %10.0g
Since my data is huge I cannot use dataex and will add a screenshot :
Thank you a lot for your help
Comment