Here is my code:
colnames(sheet1)[4:723] <- colnames(sheet1[,4:723],do.NULL = FALSE, prefix = "distance")
It did not show any error message.
What I want are column names in the pattern of "distance 1" "distance 2" ... "distance 719" "distance 720"
However, what I got were still the default names "Col4" "Col5" "Col6" "Col7" "Col8" "Col9" "Col10" "Col11" "Col12" ...
Can someone help me with it? Thank you in advance!