<?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 Use match or contains ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Use-match-or-contains/m-p/378055#M62785</link>
    <description>&lt;P&gt;Hi&amp;nbsp; &lt;/P&gt;&lt;P&gt;Request some help with scripting the "Output" column.&lt;/P&gt;&lt;P&gt;I have a list of Sr IDs allocated to different events and need the resulting output column where LAB T0 event is matched to specific Event&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-04-19 at 6.04.08 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32195iDCDA2E48A4BC4201/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-04-19 at 6.04.08 PM.png" alt="Screen Shot 2021-04-19 at 6.04.08 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Would be obliged for the help. I have attached the excel file for the above screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 22:11:24 GMT</pubDate>
    <dc:creator>sbidwe</dc:creator>
    <dc:date>2023-06-09T22:11:24Z</dc:date>
    <item>
      <title>Use match or contains ?</title>
      <link>https://community.jmp.com/t5/Discussions/Use-match-or-contains/m-p/378055#M62785</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;/P&gt;&lt;P&gt;Request some help with scripting the "Output" column.&lt;/P&gt;&lt;P&gt;I have a list of Sr IDs allocated to different events and need the resulting output column where LAB T0 event is matched to specific Event&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-04-19 at 6.04.08 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32195iDCDA2E48A4BC4201/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-04-19 at 6.04.08 PM.png" alt="Screen Shot 2021-04-19 at 6.04.08 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Would be obliged for the help. I have attached the excel file for the above screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:11:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Use-match-or-contains/m-p/378055#M62785</guid>
      <dc:creator>sbidwe</dc:creator>
      <dc:date>2023-06-09T22:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use match or contains ?</title>
      <link>https://community.jmp.com/t5/Discussions/Use-match-or-contains/m-p/378069#M62786</link>
      <description>&lt;P&gt;Given a data table that looks like this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="out1.PNG" style="width: 476px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32196iE0C18C7A00182F45/image-size/large?v=v2&amp;amp;px=999" role="button" title="out1.PNG" alt="out1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;JMP provided the following script as I interactively when through the steps to create your required output&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Clear row selection
Data Table( "Example File" ) &amp;lt;&amp;lt; Clear Select;


// Data table summary
// → Data Table( "Subset of Untitled 9 By (Sr ID, Event)" )
Data Table( "Example File" ) &amp;lt;&amp;lt; Summary(
	Group( :Sr ID, :Event ),
	Freq( "None" ),
	Weight( "None" ),
	Link to original data table( 0 )
);

// Select matching cells
Data Table( "Example File By (Sr ID, Event)" ) &amp;lt;&amp;lt;
Select Where( :Event == "LAB_T0" );


// Delete selected rows
Data Table( "Example File By (Sr ID, Event)" ) &amp;lt;&amp;lt;
Select Where( :Event == "LAB_T0" ) &amp;lt;&amp;lt; Delete Rows;


// Delete column: N Rows
Data Table( "Example File By (Sr ID, Event)" ) &amp;lt;&amp;lt; Delete Columns( :N Rows );


// Change column name: Event → Output
Data Table( "Example File By (Sr ID, Event)" ):Event &amp;lt;&amp;lt; Set Name( "Output" );


// Update data tables
Data Table( "Example File" ) &amp;lt;&amp;lt; Update(
	With( Data Table( "Example File By (Sr ID, Event)" ) ),
	Match Columns( :Sr ID = :Sr ID )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="out2.PNG" style="width: 543px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32197i6B094778C6ED4764/image-size/large?v=v2&amp;amp;px=999" role="button" title="out2.PNG" alt="out2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 02:45:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Use-match-or-contains/m-p/378069#M62786</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-04-20T02:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use match or contains ?</title>
      <link>https://community.jmp.com/t5/Discussions/Use-match-or-contains/m-p/379287#M62931</link>
      <description>Thanks much Jim&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Apr 2021 16:50:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Use-match-or-contains/m-p/379287#M62931</guid>
      <dc:creator>sbidwe</dc:creator>
      <dc:date>2021-04-23T16:50:01Z</dc:date>
    </item>
  </channel>
</rss>

