Best Answer · By JanBask Data Science Expert
Answered on Nov 21, 2019
Yes it is possible to repeat a string n number of times in R.
For doing that we can use replicate or rep function
replicate(3, "string")
Output
[1] "string" "string" "string"
rep("string", 2)
Output
[1] "string" "string"