I m replacing one text in R using sub.
x<-"My name is ${name}"
sub("${name}","Tiger",x)
Error Message:
Error in sub("${name}", "Tiger", x) :
invalid regular expression '${name}', reason 'Invalid contents of {}'
Input text has {}, How to fix this error?
Use the
fixed=TRUEargument: