<?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: How does text format content get in memory without repetition? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-does-text-format-content-get-in-memory-without-repetition/m-p/773912#M95535</link>
    <description>&lt;P&gt;Use Summarize()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; Add Rows(1, after(N Row(dt)));
dt[N Rows(dt), 1] = dt[1, 1];

Summarize(dt, uniq = By(Column(dt, 1)));

show(uniq);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or associative array()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Associative Array(Column(dt, 1)) &amp;lt;&amp;lt; get keys&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or create summary table and get values from there&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt_summary = dt &amp;lt;&amp;lt; Summary(
	Group(Column(dt, 1)),
	Freq("None"),
	Weight("None"),
	Link to original data table(0),
	private
);

a = dt_summary[0, 1];
Close(dt_summary, No save);
show(a);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;All of these have their own use cases&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2024 14:45:17 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-07-18T14:45:17Z</dc:date>
    <item>
      <title>How does text format content get in memory without repetition?</title>
      <link>https://community.jmp.com/t5/Discussions/How-does-text-format-content-get-in-memory-without-repetition/m-p/773890#M95533</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Like this first column:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Add Rows( 1, after( N Row( dt ) ) );
dt[N Rows( dt ), 1] = dt[1, 1];

ar = dt &amp;lt;&amp;lt; GetAsMatrix( 1 );nn = Matrix( Associative Array( ar[0, 1] ) &amp;lt;&amp;lt; getKeys );//？？&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 14:32:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-does-text-format-content-get-in-memory-without-repetition/m-p/773890#M95533</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-18T14:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: How does text format content get in memory without repetition?</title>
      <link>https://community.jmp.com/t5/Discussions/How-does-text-format-content-get-in-memory-without-repetition/m-p/773912#M95535</link>
      <description>&lt;P&gt;Use Summarize()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; Add Rows(1, after(N Row(dt)));
dt[N Rows(dt), 1] = dt[1, 1];

Summarize(dt, uniq = By(Column(dt, 1)));

show(uniq);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or associative array()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Associative Array(Column(dt, 1)) &amp;lt;&amp;lt; get keys&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or create summary table and get values from there&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt_summary = dt &amp;lt;&amp;lt; Summary(
	Group(Column(dt, 1)),
	Freq("None"),
	Weight("None"),
	Link to original data table(0),
	private
);

a = dt_summary[0, 1];
Close(dt_summary, No save);
show(a);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;All of these have their own use cases&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 14:45:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-does-text-format-content-get-in-memory-without-repetition/m-p/773912#M95535</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-18T14:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How does text format content get in memory without repetition?</title>
      <link>https://community.jmp.com/t5/Discussions/How-does-text-format-content-get-in-memory-without-repetition/m-p/774015#M95553</link>
      <description>&lt;P&gt;Thanks Experts!&lt;/P&gt;&lt;P&gt;Can a list already in memory be filtered by a similar function?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;a1={"A","B","C","D","E","B","C","D","E"};&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jul 2024 23:17:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-does-text-format-content-get-in-memory-without-repetition/m-p/774015#M95553</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-18T23:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: How does text format content get in memory without repetition?</title>
      <link>https://community.jmp.com/t5/Discussions/How-does-text-format-content-get-in-memory-without-repetition/m-p/774020#M95557</link>
      <description>&lt;P&gt;All of the same methods work, but for summary/summarize you have to first create a data table. For associative array it is more simple&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/create-associative-arrays.shtml" target="_blank" rel="noopener"&gt;Scripting Guide &amp;gt; Data Structures &amp;gt; Associative Arrays in JSL Scripts &amp;gt; Create Associative Arrays&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

a1 = {"A", "B", "C", "D", "E", "B", "C", "D", "E"};

a2 = Associative Array(a1) &amp;lt;&amp;lt; get keys;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Jul 2024 04:32:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-does-text-format-content-get-in-memory-without-repetition/m-p/774020#M95557</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-19T04:32:43Z</dc:date>
    </item>
  </channel>
</rss>

