0

I have a big character vector, for example, I take only three elements

vec <- c("first", "second", "third")

and I have logical vector

logVec <- c("Or", "And")

I want output as:

"first Or second And third"

I tried it using paste0, but it takes for loop to traverse every pair and appending logical vector sequentially. Is there any simple way of doing this?

rawr
  • 20,481
  • 4
  • 44
  • 78
indra_patil
  • 283
  • 1
  • 4
  • 11

0 Answers0