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
Command problem with counting sample firms smaller than the firm for each country in each year (panel data)Hi, guys, I would like to measure the percentage of sample firms smaller than the firm for each coun…
Mean of a group minus the observation's value in Panel dataHi, I have a data structure like this: IO-IOarea-Year-index 1----4-------1997-0 2----4-------1998-…
Logging results in forvalues-loop: command lines are not shown in output-logfileHello, I want to save some output results using the -log- command. This works fine if I use -log- a…
method for omitted variable bias cross sectional analysisDear all, I have a cross sectional analysis to analyse the effect of head circumference (continuous …
Reshaping DataDear members I am facing an issue with some data which is available with me in MS-Excel in the follo…
Subscribe to:
Post Comments (Atom)
0 Response to [DUVIDA] Separar valores de uma variável
Post a Comment