When reading the following helpfile it should be possible to add a prefix to the column names :
colnames(x, do.NULL = TRUE, prefix = \"col\")
I will add a tidyverse approach to this problem, for which you can both add suffix and prefix to all column names. The following adds a prefix in a dplyr pipe.
df <- data.frame(x = c(1, 2), y = c(3, 4))
df %>% dplyr::rename_all(function(x) paste0("a", x))
Adding suffix is easier.
df %>% dplyr::rename_all(paste0, "a")