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
Replace a observation by a missing valueI would like to know the command to replace the observations where it is written "refusal" and "don´…
Relative risk ratios and their CIs from teffects psmatchI am trying to work out relative risk ratios from the ATET result on a binary outcome in teffects ps…
Count number of individuals that gave an answer in a questionnarieI would like to know the code to know the number of individuals (each individuak is identified by th…
Specifying a 'fill in the blank' variable in a loopHello, I'm sure this is a function but I'm having trouble finding it -- I'm trying to make a loop t…
Loop mixed model over a least of predictors and store the coefficients and P valuesHi, I want to loop a mixed model over a list of predictors (fixed effects) and store the coefficien…
Subscribe to:
Post Comments (Atom)
0 Response to [DUVIDA] Separar valores de uma variável
Post a Comment