search for: thetastring

Displaying 3 results from an estimated 3 matches for "thetastring".

Did you mean: thatstring
2018 Feb 13
0
Help with regular expressions
Hi Dennis, How about: # define the two values to search for x<-2 y<-3 # create your search string and replacement string repstring<-paste(x,y,sep=",") newstring<-paste(x,y,sep=".") # this is the string that you want to change thetastring<-"SIGMA(2,3)" sub(repstring,newstring,thetastring) [1] "SIGMA(2.3)" Use gsub if you want to change multiple values Jim On Tue, Feb 13, 2018 at 1:22 PM, Dennis Fisher <fisher at plessthan.com> wrote: > R 3.4.2 > OS X > > Colleagues > > I would apprec...
2018 Feb 13
1
Help with regular expressions
...How about: > > > # define the two values to search for > x<-2 > y<-3 > # create your search string and replacement string > repstring<-paste(x,y,sep=",") > newstring<-paste(x,y,sep=".") > # this is the string that you want to change > thetastring<-"SIGMA(2,3)" > sub(repstring,newstring,thetastring) > [1] "SIGMA(2.3)" > > Use gsub if you want to change multiple values > > Jim > > On Tue, Feb 13, 2018 at 1:22 PM, Dennis Fisher <fisher at plessthan.com> wrote: >> R 3.4.2 >> OS...
2018 Feb 13
3
Help with regular expressions
R 3.4.2 OS X Colleagues I would appreciate some help with regular expressions. I have string that looks like: " ITERATION ,THETA1 ,THETA2 ,THETA3 ,THETA4 ,THETA5 ,THETA6 ,THETA7 ,SIGMA(1,1) ,SIGMA(2,1) ,SIGMA(2,2)? In the entries that