I have a string like this:
str1 <- "get all securities in portfolio port1 on date 2010-12-31 where field value of Close on 2010-12-31+10 less than 2000"
I am trying to convert "2010-12-31+10" to "2011-01-10" in str1
.
I tried str_replace_all
method of stringr
package
But i didnt get the output.
> str_replace_all(str1,"2010-12-31+10","2011-01-10")
[1] "get all securities in portfolio port1 on date 2010-12-31 where field value of Close on 2010-12-31+10 less than 2000"
What is the reason for that?