Dear statalister,
I am trying to merge to database, I would like to try using a concatenate of country and year, first is a string and the second a number. Are there any function or command to do it? I tested strcat and something else I found in the fórum but one is for two strings and the second for two numbers.
Thank you for your kind help.
Best regards,
Alejandro
Related Posts with Concatenate of a string and a number
Panel specific ar vs common arHello everyone, what are the tests/ criteria that specify which type of options should I choose when…
How to drop some observations based on tab results ? Hi Everyone, I would like to drop some countries with percent value <0.10. I dont know how to …
How can I correctly remove the missing values within group in Stata?I have a small data set laid out in longitudinal format, * Example generated by -dataex-. clear inpu…
How to split variable that does not have spacesHi Everyone, I would like to split (eg. Italy2019) into two variables (eg.country= Italy and year =…
Combining two time variables (Year & Period of year (month)) into one time variable which could be used as tsset for graphsHello Stata community; I have this dataset: Code: * Example generated by -dataex-. To install: ssc…
Subscribe to:
Post Comments (Atom)
0 Response to Concatenate of a string and a number
Post a Comment