<?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: refer to levels of variables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/444464#M69246</link>
    <description>&lt;P&gt;'Cols &amp;gt; Columns Viewer' gives this kind of output with 'Show Summary':&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-12-13 at 10.15.02.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38358i1B3BC3B6549D1C2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-12-13 at 10.15.02.png" alt="Screenshot 2021-12-13 at 10.15.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 10:17:19 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2021-12-13T10:17:19Z</dc:date>
    <item>
      <title>refer to levels of variables</title>
      <link>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/442618#M69090</link>
      <description>&lt;P&gt;Dear Community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I perform a count of the levels of a variable?&lt;/P&gt;&lt;P&gt;In R i can type length(levels(x)).&amp;nbsp;&lt;/P&gt;&lt;P&gt;example: the species of bacteria are levels of the variable "species"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best,&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:41:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/442618#M69090</guid>
      <dc:creator>ezorlo</dc:creator>
      <dc:date>2023-06-10T23:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: refer to levels of variables</title>
      <link>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/442642#M69095</link>
      <description>&lt;P&gt;If you want unique values in a list or table column here are some functions that will help.&amp;nbsp; The first one is for a list:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/*
Function Name: get_unique_values
Description: Find the unique values in a list.  Uses an associative array
Arguments:
in_list		List to get unique values for
*/
Get_unique_values = Function( {in_list},
      {Default Local}, 
      tmp = [=&amp;gt; 0]; 
      Insert Into( tmp, in_list ); 
      tmp &amp;lt;&amp;lt; get keys; 
); &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For a table column:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/* Function Name	Get_Unique_Values_col
Description:	Get the unique values for a column.  For example:

	Indications
	------------
	AAAAA
	BBBBB
	AAAAA
	CCCCC
	CCCCC

unique_list = get_unique_values_col (:Indications)

will return {"AAAAA", "BBBBB", "CCCCC"}

Arguments:
dtcol		column descriptor to calculate unique values for
*/
Get_Unique_Values_col = Function( {dtcol},{default local},
// Eval/expr trickery to get this to work.
	eval(eval expr(
		Summarize(unique_list = By(expr(dtcol)))));
	unique_list;
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Dec 2021 13:34:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/442642#M69095</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2021-12-06T13:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: refer to levels of variables</title>
      <link>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/442662#M69096</link>
      <description>&lt;P&gt;If you prefer an interactive solution, use Tables &amp;gt; Summary. Put the column you want as a Group variable and click OK. The number of rows in the resulting data table is the number of levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make the variable you want an ordinal or nominal variable. Use Analyze &amp;gt; Distribution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 14:22:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/442662#M69096</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2021-12-06T14:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: refer to levels of variables</title>
      <link>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/444346#M69226</link>
      <description>&lt;P&gt;Hi thanks for this interesting answer. I could not get it to work though. it is undoubtedly due to my lack of skills.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:18:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/444346#M69226</guid>
      <dc:creator>ezorlo</dc:creator>
      <dc:date>2021-12-11T19:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: refer to levels of variables</title>
      <link>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/444347#M69227</link>
      <description>&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;In the histogram there is a line with "levels" , gives me exactly what i need.&lt;/P&gt;&lt;P&gt;still, at the risk of whining, the numbers of levels may be in the hundreds and it is cumbersome to scroll past the frequency table. I imagine there should be an easier way to find out how many unique values are in a column...&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:24:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/444347#M69227</guid>
      <dc:creator>ezorlo</dc:creator>
      <dc:date>2021-12-11T19:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: refer to levels of variables</title>
      <link>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/444390#M69236</link>
      <description>&lt;P&gt;Then use the Tables &amp;gt; Summary approach. You may get a table with hundreds of rows, but the row panel at the bottom will tell you how many rows are in the table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also look to see if this suggestion was put into the JMP Wish List. If it is there, kudo it to cast your vote to add this feature. If you don't find it there, then add it.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Dec 2021 19:22:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/444390#M69236</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2021-12-12T19:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: refer to levels of variables</title>
      <link>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/444464#M69246</link>
      <description>&lt;P&gt;'Cols &amp;gt; Columns Viewer' gives this kind of output with 'Show Summary':&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-12-13 at 10.15.02.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38358i1B3BC3B6549D1C2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-12-13 at 10.15.02.png" alt="Screenshot 2021-12-13 at 10.15.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 10:17:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/444464#M69246</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2021-12-13T10:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: refer to levels of variables</title>
      <link>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/724289#M90634</link>
      <description>&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;This is the best most direct way to find the number of levels.&lt;/P&gt;&lt;P&gt;It is a little "hidden" but at least it gives me what I need&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 12:39:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/refer-to-levels-of-variables/m-p/724289#M90634</guid>
      <dc:creator>ezorlo</dc:creator>
      <dc:date>2024-02-14T12:39:29Z</dc:date>
    </item>
  </channel>
</rss>

