<?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: Counting elements in list (within a cell) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Counting-elements-in-list-within-a-cell/m-p/256340#M50359</link>
    <description>&lt;P&gt;Just to complete, this works great and allows the later use of Recode functionality (as some elements have commas within).&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2020 15:40:26 GMT</pubDate>
    <dc:creator>FN</dc:creator>
    <dc:date>2020-04-06T15:40:26Z</dc:date>
    <item>
      <title>Counting elements in list (within a cell)</title>
      <link>https://community.jmp.com/t5/Discussions/Counting-elements-in-list-within-a-cell/m-p/256300#M50353</link>
      <description>&lt;P&gt;I am working with results from a Google form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The spreadsheet has elements within the cell.&lt;/P&gt;&lt;P&gt;user,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;answer,&amp;nbsp; &amp;nbsp; ...&lt;/P&gt;&lt;P&gt;John Doe, "A,B,C,F,G",...&lt;/P&gt;&lt;P&gt;Jane Doe, "B,D", ...&lt;/P&gt;&lt;P&gt;Richard Roe, "B,G", ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an easy way to count these elements, so a bar plot will show the following ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A: _] 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;B:___] 3&lt;/P&gt;&lt;P&gt;C:_] 1&lt;/P&gt;&lt;P&gt;D:_] 1&lt;/P&gt;&lt;P&gt;E:_] 1&lt;/P&gt;&lt;P&gt;F:_] 1&lt;/P&gt;&lt;P&gt;G:__] 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 13:12:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Counting-elements-in-list-within-a-cell/m-p/256300#M50353</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2020-04-06T13:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Counting elements in list (within a cell)</title>
      <link>https://community.jmp.com/t5/Discussions/Counting-elements-in-list-within-a-cell/m-p/256307#M50354</link>
      <description>&lt;P&gt;Use the Text to Columns to move each letter found and then stack the columns that were created.&amp;nbsp; That will stack them and you can use the Data column for your axis on you bar chart.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="count.PNG" style="width: 612px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22803i27CBECD7D46D92BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="count.PNG" alt="count.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt= New Table( "example",
	Add Rows( 3 ),
	New Column( "Column 1",
		Character,
		"Nominal",
		Set Values( {"A,B,C,F,G", "B,D", "B,G"} )
	)
);
dt &amp;lt;&amp;lt; Text To Columns( delimiter( "," ), columns( :column 1 ) );

dtStack = dt &amp;lt;&amp;lt; Stack(
	columns( :Column 1 1, :Column 1 2, :Column 1 3, :Column 1 4, :Column 1 5 ),
	Source Label Column( "Label" ),
	Stacked Data Column( "Data" )
);

dtStack &amp;lt;&amp;lt; Graph Builder(
	Size( 518, 456 ),
	Show Control Panel( 0 ),
	Variables( Y( :Data ) ),
	Elements( Bar( Y, Legend( 3 ), Label( "Label by Value" ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Apr 2020 14:04:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Counting-elements-in-list-within-a-cell/m-p/256307#M50354</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-06T14:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Counting elements in list (within a cell)</title>
      <link>https://community.jmp.com/t5/Discussions/Counting-elements-in-list-within-a-cell/m-p/256339#M50358</link>
      <description>&lt;P&gt;Make your answer column a &lt;A href="https://www.jmp.com/support/help/en/15.1/#page/jmp/about-the-column-info-window.shtml#ww417172" target="_self"&gt;multiple response modeling type&lt;/A&gt; and the Distribution platform will do that for you automatically.&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="2020-04-06_10-46-47.279.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22805i556BDA0D2E80817F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-04-06_10-46-47.279.png" alt="2020-04-06_10-46-47.279.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-04-06_10-57-24.481.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22806i1E7AC478E0565EC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-04-06_10-57-24.481.png" alt="2020-04-06_10-57-24.481.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 14:59:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Counting-elements-in-list-within-a-cell/m-p/256339#M50358</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2020-04-06T14:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Counting elements in list (within a cell)</title>
      <link>https://community.jmp.com/t5/Discussions/Counting-elements-in-list-within-a-cell/m-p/256340#M50359</link>
      <description>&lt;P&gt;Just to complete, this works great and allows the later use of Recode functionality (as some elements have commas within).&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 15:40:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Counting-elements-in-list-within-a-cell/m-p/256340#M50359</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2020-04-06T15:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Counting elements in list (within a cell)</title>
      <link>https://community.jmp.com/t5/Discussions/Counting-elements-in-list-within-a-cell/m-p/256346#M50361</link>
      <description>&lt;P&gt;It needs to be noted, that currently, Multiple Response columns are not supported for many platforms.&amp;nbsp; Therefore, if there was a need to analyze resulting columns based upon the multiple response column, the Text to Columns(), Stack Table needs to be kept in your back pocket as a tool to use for such analyses&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 16:23:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Counting-elements-in-list-within-a-cell/m-p/256346#M50361</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-06T16:23:02Z</dc:date>
    </item>
  </channel>
</rss>

