temospena / Rnotebook

a compilation of R chunks
http://web.tecnico.ulisboa.pt/~rosamfelix/r/COMPILACAO.html
1 stars 0 forks source link

recode variables #33

Open temospena opened 1 year ago

temospena commented 1 year ago

reclassificar valores numa variável

tabela = tabela %>% mutate(Percursos = recode(LTS, `3` = "seguro", `4` = "direto"))