<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I scan the text in one column, and put a key term into another column? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664627#M85307</link>
    <description>&lt;P&gt;Exactly. :)&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 19:45:36 GMT</pubDate>
    <dc:creator>StarfruitBob</dc:creator>
    <dc:date>2023-08-01T19:45:36Z</dc:date>
    <item>
      <title>How can I scan the text in one column, and put a key term into another column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664513#M85291</link>
      <description>&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my first post on this board so I apologize if it is not formatted correctly. I am in the process of coming up with a new script to analyze a 12 experiment stacked data set. I need to take some key phrases from our "Batch ID" column and organize them into other columns using a formula/script (preferably formula). So in this scenario I need the "B01" phrase to go into the Bioreactor column in the same row as the batch ID containing that phrase, "VBTS-935" to do the same with the Strain column, and the date to do the same with the Date column. This is currently how our text data is formatted, but if anyone has suggestions on how to reformat it for an easier analysis please let me know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 17:16:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664513#M85291</guid>
      <dc:creator>BunnyBoi12</dc:creator>
      <dc:date>2023-08-01T17:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I scan the text in one column, and put a key term into another column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664533#M85293</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/48960"&gt;@BunnyBoi12&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd suggest adding formulas into the last 3 columns. Here are some examples you can investigate.&lt;/P&gt;&lt;P&gt;Bioreactor: word(2, :Batch ID, ":")&lt;/P&gt;&lt;P&gt;Strain:&amp;nbsp;word(2, :Batch ID, ", ")&amp;nbsp; // Note that there's a space in the quotes as well!&lt;/P&gt;&lt;P&gt;Date:&amp;nbsp;word(3, :Batch ID, ", : ")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional note on the date column, you can wrap the word() function in a format() function and format your date if you would like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help &amp;gt; Scripting Index is also an excellent resource to explore functions that may be beneficial to you!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 17:24:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664533#M85293</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-08-01T17:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I scan the text in one column, and put a key term into another column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664602#M85301</link>
      <description>&lt;P&gt;There are quite a few options on how you could perform this (word() and words() are few functions you could use or Regex() if you are familiar with regular expressions).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing I would also suggest is to explore Recode (right click on column header)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1690913193982.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55495iE3AEF385C6E9A3B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1690913193982.png" alt="jthi_0-1690913193982.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;for example it has Extract Segments option (and many more)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1690913281146.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55497i060ADA4D27796D34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1690913281146.png" alt="jthi_2-1690913281146.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_4-1690913422972.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55499i706030A0521DCB04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_4-1690913422972.png" alt="jthi_4-1690913422972.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After you have split your column, you should be able to get script from Enhanced Log&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1690913400540.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55498iC18F567BF16C3F1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1690913400540.png" alt="jthi_3-1690913400540.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And Text To Columns which might help you to make the large problem into few smaller ones.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1690913210598.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55496i6DBDFF513A490827/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1690913210598.png" alt="jthi_1-1690913210598.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, when you post questions to JMP community, it is generally a good idea if you can provide some sort of data (mock-up or real if it can be shared) and include desired results column(s) at least for few rows to help when testing out different solutions.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 18:12:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664602#M85301</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-08-01T18:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I scan the text in one column, and put a key term into another column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664615#M85303</link>
      <description>&lt;P&gt;Awesome thank you! Ill definitely use the recode option more often with those uses.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 19:11:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664615#M85303</guid>
      <dc:creator>BunnyBoi12</dc:creator>
      <dc:date>2023-08-01T19:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I scan the text in one column, and put a key term into another column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664620#M85304</link>
      <description>&lt;P&gt;would you mind explaining what the "2" and "3" mean? Your formulas worked like a charm but the explanation that JMP gives is wayyyyyy over my head when it comes to the formula context and I want to make sure I cna teach the rest of my team how to use this properly&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 19:13:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664620#M85304</guid>
      <dc:creator>BunnyBoi12</dc:creator>
      <dc:date>2023-08-01T19:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I scan the text in one column, and put a key term into another column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664625#M85305</link>
      <description>&lt;P&gt;Let's say we have a string:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mystr = "my,name,is,starfruitbob"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;word( &amp;lt;number here&amp;gt;, &amp;lt;what I'm processing&amp;gt;, &amp;lt;all delimiters, in string format&amp;gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my opinion, it's best to learn what each of these do slightly out of order:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;lt;what I'm processing&amp;gt; : This could be a string variable or column, for example. This is the input. Must be character type.&lt;/LI&gt;&lt;LI&gt;&amp;lt;delimiter&amp;gt; : "string things here!" &amp;lt;-- put all of the delimiters you wish in here. &lt;STRONG&gt;EACH&lt;/STRONG&gt; of them, individually, will be used as a delimiter, even if you put a space in there!&lt;/LI&gt;&lt;LI&gt;&amp;lt;number here&amp;gt; : Depending how you're delimiting your input, it will be separated into different "chunks". The number is what "chunk" you want to return.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's look at an example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mystr = "my,name,is,starfruitbob";
// Note where the commas are in the variable above
print( word( 1, mystr, "," ) ); // Returns: my
print( word( 3, mystr, "," ) ); // Returns: is

// If the delimiter is changed...
print( word( 1, mystr, "s" ) ); // Returns: my,name,i
// This is because it will return the first characters BEFORE the new delimiter "s"
print( word( 2, mystr, "s" ) ); // Returns: ,
// There's only a single comma between the two "s" delimiters, and is the second "chunk" of the input&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Does this help&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/48960"&gt;@BunnyBoi12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 19:37:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664625#M85305</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-08-01T19:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I scan the text in one column, and put a key term into another column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664626#M85306</link>
      <description>&lt;P&gt;I think so. So if you did&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;print( word(3, mystr, "s" ) ); it would return&amp;nbsp; &amp;nbsp;"tarfruitbob" ?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 19:43:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664626#M85306</guid>
      <dc:creator>BunnyBoi12</dc:creator>
      <dc:date>2023-08-01T19:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I scan the text in one column, and put a key term into another column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664627#M85307</link>
      <description>&lt;P&gt;Exactly. :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 19:45:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664627#M85307</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-08-01T19:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I scan the text in one column, and put a key term into another column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664628#M85308</link>
      <description>&lt;P&gt;You're awesome man, I hope you have a fantastic day&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 19:49:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-scan-the-text-in-one-column-and-put-a-key-term-into/m-p/664628#M85308</guid>
      <dc:creator>BunnyBoi12</dc:creator>
      <dc:date>2023-08-01T19:49:39Z</dc:date>
    </item>
  </channel>
</rss>

