D
Demosthenes
This is a further iteration of a problem I've been working on and posted
earlier under the subject: "Isolating String Combinations."
Say you have the following data:
AB
CD
CD
CE
CD
AB
CD
AG
CD
CD
CE
CS
CD
AB
CD
CD
CF
CG
CE
Which can be in one or two columns. I'm trying to analyze the makeup of
the"CX" occurrences (i.e., whether they are CD, CF, CG, etc), but ONLY IN
CHAINS longer than 4 occurrences (i.e., 4 C's in a row or longer) AND that
follow "AB" (i.e., not "AG"). I want to create a helper column that is
composed of just these instances that I'm considering. So my question is: How
do I create a helper column that is composed of only the chains of 4 or
longer that follow "AB"? Output for the above would be:
AB
CD
CD
CE
CD
AB
CD
CD
CF
CG
CE
Thoughts?
earlier under the subject: "Isolating String Combinations."
Say you have the following data:
AB
CD
CD
CE
CD
AB
CD
AG
CD
CD
CE
CS
CD
AB
CD
CD
CF
CG
CE
Which can be in one or two columns. I'm trying to analyze the makeup of
the"CX" occurrences (i.e., whether they are CD, CF, CG, etc), but ONLY IN
CHAINS longer than 4 occurrences (i.e., 4 C's in a row or longer) AND that
follow "AB" (i.e., not "AG"). I want to create a helper column that is
composed of just these instances that I'm considering. So my question is: How
do I create a helper column that is composed of only the chains of 4 or
longer that follow "AB"? Output for the above would be:
AB
CD
CD
CE
CD
AB
CD
CD
CF
CG
CE
Thoughts?