Skip to content
Prev 363943 / 398498 Next

element wise pattern recognition and string substitution

Hi Ista,

Imagine we have a data set called "all.exposure" with variables
"TX","WTCUT" for a function. The concatenated strings are generated by some
procedure within the function (the dot is used as separator, I can't change
that). Now I want to parse the strings back to the original values as in
"TX" and "WTCUT" (there could be more than two variables). Since the data
set is provided by users, I cannot pre-define the pattern. The patterns
have to be figured out from the values in "TX" and "WTCUT". It's easy if
the values in "TX" or "WTCUT" don't have any "." but much trickier if they
do. However, the number of the patterns are limited by the combination of
the unique values in "TX" and "WTCUT". All possible patterns can be
constructed by the code I posted in this thread. Now I need to figure out a
way to match the patterns to the strings so each string can be parsed
correctly. I have made some progress...

Jun
On Wed, Sep 7, 2016 at 9:34 AM, Ista Zahn <istazahn at gmail.com> wrote:

            

  
  

Thread (25 messages)

Jun Shen element wise pattern recognition and string substitution Sep 4 Jeff Newmiller element wise pattern recognition and string substitution Sep 4 Bert Gunter element wise pattern recognition and string substitution Sep 4 Jeff Newmiller element wise pattern recognition and string substitution Sep 5 Bert Gunter element wise pattern recognition and string substitution Sep 5 Jeff Newmiller element wise pattern recognition and string substitution Sep 5 Jun Shen element wise pattern recognition and string substitution Sep 5 Bert Gunter element wise pattern recognition and string substitution Sep 5 Bert Gunter element wise pattern recognition and string substitution Sep 5 Jun Shen element wise pattern recognition and string substitution Sep 6 Bert Gunter element wise pattern recognition and string substitution Sep 6 Jeff Newmiller element wise pattern recognition and string substitution Sep 6 Jun Shen element wise pattern recognition and string substitution Sep 6 Jun Shen element wise pattern recognition and string substitution Sep 6 Ista Zahn element wise pattern recognition and string substitution Sep 6 Bert Gunter element wise pattern recognition and string substitution Sep 6 Jun Shen element wise pattern recognition and string substitution Sep 6 Bert Gunter element wise pattern recognition and string substitution Sep 6 Jeff Newmiller element wise pattern recognition and string substitution Sep 7 Jeff Newmiller element wise pattern recognition and string substitution Sep 7 Ista Zahn element wise pattern recognition and string substitution Sep 7 Ista Zahn element wise pattern recognition and string substitution Sep 7 Jun Shen element wise pattern recognition and string substitution Sep 8 Ista Zahn element wise pattern recognition and string substitution Sep 9 Jun Shen element wise pattern recognition and string substitution Sep 9