I am trying to use the function stri_join, from the library stringi in a loop, but I am having difficulties. I would like to obtain "A_1.png", "A_2.png", "A_3.png", "A_4.png", "A_5.png", and so on until "A_200.png".
Here is my attempt:
x <- c(1:200)
x
for (i in 1:length(x)){
Names <-paste("A_", 1:length(i), ".png",sep = "")
print(Names)
}
I obtain "A_1.png" 200 times. If you could point what I am missing.