Olá pessoal, preciso extrair para uma nova coluna os dois primeiros dígitos de uma variável. Por exemplo: A variável CNAE é composta por 5 dígitos (12345) e preciso criar uma nova coluna contendo apenas os dois primeiros valores (12). Vi que existe o comando split, mas pelo que entendi, o mesmo serve apenas para strings... Alguém pode me auxiliar? obrigado!
Related Posts with [DUVIDA] Separar valores de uma variável
Table for summary statisticsHi, I understand that I can do a twoway table using the tab (xxx), sum (xxx) command. Is there a way…
TobitHello, Please, can anyone help me on how to run a Tobit regression taking into consideration random …
Subtracting dateHi I have a question that I am struggling with: I have three variables of interest that I would like…
Missing data - general researchHello everyone! I´m a Medical Student, from Brazil, and it´s the first time I´m using Stata. I am pa…
Pseudo Poisson gravity model of public procurement market - with and without zeros.Hi everybody! I am currently working on my graduation thesis and I have a few issues with my model a…
Subscribe to:
Post Comments (Atom)
0 Response to [DUVIDA] Separar valores de uma variável
Post a Comment