Hello I have a question. I have one string variable which have 4 characters the first two are the houres a the two second are the minutes How can I Split that variable into to variable one for the houres and other for the minutes?
Please look into the inlist function, i do have a video on that, if it doesn't work the n send me an email at info@thedatahall.com along with example data.
i have data in some cell it is: "Received" in another cell: Continuing without support now i want for both these observations to get a code of 1 in newly generated variable. how to put two criteria in strmatch
very useful commands for data management
Informative as usual. I have a suggestion to please upload the do file in description of the video.
Thnaks for the suggestion. I have added a link to the files in the description of this video. We will do it for other videos as well.
Many thaks@@thedatahall
Hello I have a question. I have one string variable which have 4 characters the first two are the houres a the two second are the minutes How can I Split that variable into to variable one for the houres and other for the minutes?
very useful sir thanks for video
So nice of you
This is a very useful video. I want to ask how do we match multiple words? Like if I want to look for any of the multiple words in the variable data?
Please look into the inlist function, i do have a video on that, if it doesn't work the n send me an email at info@thedatahall.com along with example data.
i have data in some cell it is: "Received" in another cell: Continuing without support now i want for both these observations to get a code of 1 in newly generated variable. how to put two criteria in strmatch
thank you so much
Welcome
Is there any way to identify blank spaces in string variables? I do not need to remove it, just to identify it
You can use following command
gen var=1 if regexm(variable_name," ")==1