Pipes and tidyverse are sometimes very convenient. The user wants to do convert one column from one type to another.
Like so:
mtcars$qsec <-as.integer(mtcars$qsec)
This requires typing twice what I need. Please do not suggest "with" command since I find it confusing to use.
What would be the tidyverse and magrittr %<>% way of doing the same with least amount of typing? Also, if qsec is 6th column, how can I do it just refering to column position. Something like (not correct code)
mtcars %<>% mutate(as.integer,qsec)
mtcars %<>% mutate(as.integer,[[6]])