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
How to do a margin plot with variables with non integers?Hello, I am trying to do a margin plot with interacion terms, but when I run Code: margins ssr., a…
what a. means in a observation?Hello, I merged two databases and after that, some observations (cells) have a string "a." What does…
Improving forest plot appearanceHello, I was just looking for some advice on how to improve this (and other forest plot appearances…
repeated time values within panelDear statalisters, I am asking you for help because when I run Code: xtset firm year I receive a …
Scatterplot of dates?Hi All, I'm using STATA 15. My question is how do I convert and then format a datetime variable (c…
Subscribe to:
Post Comments (Atom)
0 Response to [DUVIDA] Separar valores de uma variável
Post a Comment