I have a string "c(\"AV\", \"IM\")"
, which I'm trying to transform into the string "AV IM"
.
My issue is that I can't unlist()
or flatten()
this, as it's a character, and neither paste()
nor stringr::str_c()
work, since it's technically still 1 character value.
Any ideas how I can do this?
Tidyverse solutions preferred, if possible.
EDIT: I know this can be solved via regex, but I feel like this is more a "fundamental" problem to be solved string-level than it is a regex problem, if that makes any sense.