What is the best way of using a character vector, such as:
vector <- c("36","944","38","994")
To generate a string like this:
new_string <- "x == '36'| x == '944'| x == '38'| x == '994'"
I tried using paste0 but I am searching for a more efficient way to do this, i.e.
paste0("x == ", '36', "| x == ", "944, "| x == ")