Consider the example
n <- 100
for (j in 1:n) {
print(sprintf("Processing feature %i from %i; %1.0f",j,n,j/n*100))
}
But I would like to have an output text with a "%" at the end of each line, just like
Processing feature 15 from 100; 15%
Of course
n <- 100
for (j in 1:n) {
print(sprintf("Processing feature %i from %i; %1.0f%",j,n,j/n*100))
}
returns error message because the last "%"
How can I can get the percent symbol "%" at the end of the output string using sprintf command?
Thanks in advance