With R, when we put double quotes inside a double quotes:
y <- " " " "
It will end out
Error: unexpected string constant in "y <- " " " ""
My question is how to remove all the double quotes detected or convert into single quotes within the main double quotes.
For example:
y <- "I'm watching "Prometheus"."
y
The desired result is
#[1] "I'm watching Prometheus."
or
#[1] "I'm watching 'Prometheus'."