<?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 [JSL] How can i know the number of values in my list ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-How-can-i-know-the-number-of-values-in-my-list/m-p/6943#M6937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 12pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 12pt;"&gt;I have a list with lots of values and i would like to know, how many values are there in this list ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 12pt;"&gt;Thanks for your help !&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jun 2013 14:03:59 GMT</pubDate>
    <dc:creator>antoinesofradir</dc:creator>
    <dc:date>2013-06-19T14:03:59Z</dc:date>
    <item>
      <title>[JSL] How can i know the number of values in my list ?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-can-i-know-the-number-of-values-in-my-list/m-p/6943#M6937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 12pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 12pt;"&gt;I have a list with lots of values and i would like to know, how many values are there in this list ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 12pt;"&gt;Thanks for your help !&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 14:03:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-can-i-know-the-number-of-values-in-my-list/m-p/6943#M6937</guid>
      <dc:creator>antoinesofradir</dc:creator>
      <dc:date>2013-06-19T14:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: [JSL] How can i know the number of values in my list ?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-can-i-know-the-number-of-values-in-my-list/m-p/6944#M6938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;N Items(list)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 14:22:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-can-i-know-the-number-of-values-in-my-list/m-p/6944#M6938</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2013-06-19T14:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: [JSL] How can i know the number of values in my list ?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-can-i-know-the-number-of-values-in-my-list/m-p/6945#M6939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to know the number of unique values in the list here's a handy function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;Get_unique_values = Function( {in_list},&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; {Default Local}, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; tmp = [=&amp;gt; 0]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; Insert Into( tmp, in_list ); &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt; tmp &amp;lt;&amp;lt; get keys; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use it, first compile the function, and then call it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;my_list = {"aa", "bb", "bb", "cc", "cc"};&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;print(get_unique_values(my_list);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;{"aa", "bb", "cc"}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 16:42:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-can-i-know-the-number-of-values-in-my-list/m-p/6945#M6939</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2013-06-19T16:42:17Z</dc:date>
    </item>
  </channel>
</rss>

