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?