I'm looking to rename colnames to include the characters _16S_sed
if they're not present. For example I have the dataset
> dput(dataframe1)
structure(list(GL11_DN_1_16S_sed = structure(1:3, .Label = c("val1",
"val2", "val3"), class = "factor"), GL12_UP_3_16S_sed = structure(1:3, .Label = c("val1",
"val2", "val3"), class = "factor"), GL13_1_DN = structure(1:3, .Label = c("val1",
"val2", "val3"), class = "factor")), class = "data.frame", row.names = c(NA,
-3L))
where the third column needs the characters _16S_sed
. TIA