Does anyone know how to print a statement and have it followed by all the values of a vector rather than it printing the statement multiple times followed by individual values from the vector each time.
I want it to print the statement once and then all the elements of the vector. This is returning this as an example:
print(sprintf('The times of these 20 trades were %s' , as.POSIXct(timestore)))
The times of these 20 trades were 2023-06-10 19:30:56.377"
[2] "The times of these 20 trades were 2023-06-10 19:30:56.377"
[3] "The times of these 20 trades were 2023-06-10 19:30:56.377"
[4] "The times of these 20 trades were 2023-06-10 19:30:56.377"
[5] "The times of these 20 trades were 2023-06-10 19:30:56.377"
[6] "The times of these 20 trades were 2023-06-10 19:30:56.377
I want it to print the statement once and then all the elements of the vector.