[R] Finding a gsub like function in S+ 2000

Andrew Criswell andy at arcriswell.com
Fri Feb 2 08:22:29 CET 2001

Hello All:

In R 1.2.0, one can easily change characters in a string using, for example,
the following command,

gsub("-"," ",c("1-7-1997","12-21-1997"))
[1]  "1 7 1997"    "12 21 1997"

Is there a similar command with S+ 2000?

Thank you,

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list