Re: [R] Manipulating text files

2010-04-26 Thread galen kaufman
the model? Also, would using conditional logic or maybe subset() be a way to start approaching the finding and replacing of lines in the dataframe? Again, thank you for your help. Any additional help is very much appreciated. > From: ggrothendi...@gmail.com > Date: Sun, 25 Apr 2010 12:35

Re: [R] Manipulating text files

2010-04-25 Thread Gabor Grothendieck
Try this. First we read in the lines using readLines. (We use textConnection here to keep it self contained but you can read it from the file as shown in the commented out portion.) Using strapply we match the regular expression to the input. The two parenthesized portions match the number (\\S+

[R] Manipulating text files

2010-04-25 Thread galen kaufman
Dear R Community, I am trying to optimize a water quality model that I am using. Based on conversations with others more familiar with what I am doing I plan to implement DEOptim to do this. The water quality model is interfaced through a GUI. I have the input file necessary to alter paramet