<?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: Indexing Characters? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Indexing-Characters/m-p/633547#M83179</link>
    <description>&lt;P&gt;Actually, this is a potential alternative for another piece of code I'm working on.&amp;nbsp; If there was an "Accept as Solution but to a Different Problem," I'd press it.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2023 18:55:45 GMT</pubDate>
    <dc:creator>Pertussic</dc:creator>
    <dc:date>2023-05-19T18:55:45Z</dc:date>
    <item>
      <title>Indexing Characters?</title>
      <link>https://community.jmp.com/t5/Discussions/Indexing-Characters/m-p/632997#M83138</link>
      <description>&lt;P&gt;Is there a way to use an index argument with characters like one can do with numerals?&amp;nbsp; For example, while&amp;nbsp; 1::5 would yield {1,2,3,4,5}, is there an efficient method to do&amp;nbsp;X8::Y2 or am I stuck having to write out {"X8", "X9", "Y0", "Y1", Y2"}?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:10:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Indexing-Characters/m-p/632997#M83138</guid>
      <dc:creator>Pertussic</dc:creator>
      <dc:date>2023-06-09T16:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing Characters?</title>
      <link>https://community.jmp.com/t5/Discussions/Indexing-Characters/m-p/633022#M83143</link>
      <description>&lt;P&gt;Here is one example of using a For Each to deal with a lists values without having to use an index.&amp;nbsp; I am not sure it adds any solution for you, but it kind of gets you going in a possible solution.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");

for each( {colname,i}, dt&amp;lt;&amp;lt;get column names(string),
	show(i,colname)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2023 23:40:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Indexing-Characters/m-p/633022#M83143</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-05-18T23:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing Characters?</title>
      <link>https://community.jmp.com/t5/Discussions/Indexing-Characters/m-p/633072#M83149</link>
      <description>&lt;P&gt;Looping should be fairly efficient way of doing that and if you have to do it often you could convert it into a function. Below is very simple version of the function&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

idx_char = function({letter, start = 1, end = 8}, {Default Local},
	letter_list = {};
	For(i = start, i &amp;lt;= end, i++,
		Insert Into(letter_list, letter || char(i))
	);
	return(letter_list);
);

idx_char("Y", 1, 5); //{"Y1", "Y2", "Y3", "Y4", "Y5"}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 May 2023 07:02:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Indexing-Characters/m-p/633072#M83149</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-05-19T07:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing Characters?</title>
      <link>https://community.jmp.com/t5/Discussions/Indexing-Characters/m-p/633547#M83179</link>
      <description>&lt;P&gt;Actually, this is a potential alternative for another piece of code I'm working on.&amp;nbsp; If there was an "Accept as Solution but to a Different Problem," I'd press it.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 18:55:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Indexing-Characters/m-p/633547#M83179</guid>
      <dc:creator>Pertussic</dc:creator>
      <dc:date>2023-05-19T18:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing Characters?</title>
      <link>https://community.jmp.com/t5/Discussions/Indexing-Characters/m-p/633550#M83180</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; This will work nicely.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 19:15:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Indexing-Characters/m-p/633550#M83180</guid>
      <dc:creator>Pertussic</dc:creator>
      <dc:date>2023-05-19T19:15:52Z</dc:date>
    </item>
  </channel>
</rss>

