<?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: Parsing phrases separated by ; in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Parsing-phrases-separated-by/m-p/449796#M69662</link>
    <description>&lt;P&gt;Took a lot of recoding, but here is the summary. I'm not done with this dataset. I want to learn Regex() so I can extract the arrest dates to plot how fast DoJ worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="capitol-breach-cases-summary-bar-chart.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38806i657B985ACA91B5E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="capitol-breach-cases-summary-bar-chart.png" alt="capitol-breach-cases-summary-bar-chart.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 17:32:24 GMT</pubDate>
    <dc:creator>markschahl</dc:creator>
    <dc:date>2022-01-07T17:32:24Z</dc:date>
    <item>
      <title>Parsing phrases separated by ;</title>
      <link>https://community.jmp.com/t5/Discussions/Parsing-phrases-separated-by/m-p/448662#M69545</link>
      <description>&lt;P&gt;So, I saw a link to the 1/6 cases charged already. I got curious and File&amp;gt;Internet Open&amp;gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local( {dt},
	dt = Open(
		"https://www.justice.gov/usao-dc/capitol-breach-cases",
		HTML Table( 1, Column Names( 1 ), Data Starts( 2 ) )
	);
	dt &amp;lt;&amp;lt; Set Name( "capitol-breach-cases" );
	dt;
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thankfully, the charge(s) per case are separated by semicolons (;). I used the formula:&amp;nbsp; Words(:"Charge(s)"n, ";"). This created a column with lists like this in each row:&lt;BR /&gt;&lt;BR /&gt;{"Entering and Remaining in a Restricted Building", " Disorderly and Disruptive Conduct in a Restricted Building", " Violent Entry and Disorderly Conduct in a Capitol Building", " Parading, Demonstrating, or Picketing in a Capitol Building"}&lt;BR /&gt;&lt;BR /&gt;So, now that I have that, how can I determine the counts for each charge phrase? Would make a great packed bar chart...&lt;BR /&gt;Or can I do this with Text Explorer and somehow customizing Regex?&lt;BR /&gt;Other?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:43:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Parsing-phrases-separated-by/m-p/448662#M69545</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2023-06-09T00:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing phrases separated by ;</title>
      <link>https://community.jmp.com/t5/Discussions/Parsing-phrases-separated-by/m-p/448691#M69550</link>
      <description>&lt;P&gt;Most likely there are many ways to get this done, but you could make Charge(s) column multiple response column -&amp;gt; create distribution of that (or use some other platform which supports multiple response columns properly) -&amp;gt; make data table of the Frequencies table -&amp;gt; create graph builder from that:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1641237844913.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38703i4A73C89358680403/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1641237844913.png" alt="jthi_0-1641237844913.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 19:37:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Parsing-phrases-separated-by/m-p/448691#M69550</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-01-03T19:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing phrases separated by ;</title>
      <link>https://community.jmp.com/t5/Discussions/Parsing-phrases-separated-by/m-p/448711#M69551</link>
      <description>&lt;P&gt;Jarmo:&lt;BR /&gt;Thanks! I did not know about the Multiple Response data type. Cool thing: Recode works on a Multiple Response Column, treating each response as a value. So, there are 490 values that need to be recoded. I will be busy for a while...&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 20:22:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Parsing-phrases-separated-by/m-p/448711#M69551</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2022-01-03T20:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing phrases separated by ;</title>
      <link>https://community.jmp.com/t5/Discussions/Parsing-phrases-separated-by/m-p/449796#M69662</link>
      <description>&lt;P&gt;Took a lot of recoding, but here is the summary. I'm not done with this dataset. I want to learn Regex() so I can extract the arrest dates to plot how fast DoJ worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="capitol-breach-cases-summary-bar-chart.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38806i657B985ACA91B5E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="capitol-breach-cases-summary-bar-chart.png" alt="capitol-breach-cases-summary-bar-chart.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 17:32:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Parsing-phrases-separated-by/m-p/449796#M69662</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2022-01-07T17:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing phrases separated by ;</title>
      <link>https://community.jmp.com/t5/Discussions/Parsing-phrases-separated-by/m-p/450103#M69694</link>
      <description>&lt;P&gt;You could start with something like this to pull out the arrested date, but it would need expanded to handle other cases, like dates without years or 'arrested on ...'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Column( "Date Arrested",
	Numeric,
	"Continuous",
	Format( "m/d/y", 10 ),
	Input Format( "m/d/y" ),
	Formula(
		d = Regex( :Case Status, "Arrested (\d+/\d+/\d+)", "\1" );
		If( !Is Missing( d ),
			Parse Date( d )
		);
	),
	Set Display Width( 89 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Jan 2022 12:39:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Parsing-phrases-separated-by/m-p/450103#M69694</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2022-01-10T12:39:54Z</dc:date>
    </item>
  </channel>
</rss>

