[R] I modified my question in "search and convert string function "

From: peng shen <michael_shen_at_hotmail.com>
Date: Sun 06 Mar 2005 - 18:40:19 EST


Hi ,all R-helper!
I modified my question in "search and convert string function". I want to do this kind of operation In R enviroment : For example :
R <- 4
testString <- "I love %R%"
then search this testString, when find beginning and end symbol"%",get a new substring "%R%".
then get rid of symbole"%",replace string"R" by R(numeric ) So the final string is "I love 4"

How can I implement? if there is not this kind of function ,how can I write function in C and implement in R.
Thanks advance

Michael



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Mar 06 18:55:48 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:41 EST