I am trying top rename variables within the flow of work.
This problem occurs when I want to rename variables programmatically, and don't want to break the flow and perform an names(df)<-namevect
operation.
see below for a minimal example that throws
Error: All arguments to
rename()
must be named.
testdf <- mtcars %>%
rename_(.dots=make.names(1:11)) %>%
mutate(X3=X3*2)