-3

For the following operation:

avector<-c("p1","p2","p3")
Reduce(paste,avector)
## "p1 p2 p3"

I want to get "p1.p2.p3" Which is applying the paste function in Reduce with separator "." Please advice.

1 Answers1

0

Try this paste(avector,collapse = ".")

Liun
  • 117
  • 2