Is there a function that can be an alternative to paste ?
I would like to know if something like this exists in R:
> buildString ( "Hi {1}, Have a very nice {2} ! " , c("Tom", "day") )
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
frankc and DWin are right to point you to
sprintf().If for some reason your replacement parts really will be in the form of a vector (i.e.
c("Tom", "day")), you can usedo.call()to pass them in tosprintf():