0
I have to reproduce this formula I made in Excel =SE(C2=C1;1+D1;1) to R, but I don’t know how.
I have a basis where one of the variables is the position of employees, and I need to create a variable that lists the positions that are equal, that way:
Cargo (Coluna C)         Numero do Cargo (Coluna D)
Analista de BI                   1
Coordenador de Dados             1
Analista de BI                   2  
Analista de Dados                1
Analista de BI                   3 
I need to create this column Numero do Cargo. How to do it in R?
You have to tell us what the columns are
CandDin this data example (which only has 2 columns,AandBshould not be for sure).– Rui Barradas
Hey, I put the description on the table.
– Tamires Oliveira