<?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: Looking for tips for rapid conversion of string to matrix in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/601755#M80518</link>
    <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;How can write such data into a matrix?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;null direct removal&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Thank Jim!&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;txt="[[1668,3140325,7.25,7.27],[1660,4677712,7.17,null]]";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-02-16_11-18-48.png" style="width: 224px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50204iA0A5F1580E989915/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-02-16_11-18-48.png" alt="2023-02-16_11-18-48.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2023 03:19:27 GMT</pubDate>
    <dc:creator>UersK</dc:creator>
    <dc:date>2023-02-16T03:19:27Z</dc:date>
    <item>
      <title>Looking for tips for rapid conversion of string to matrix</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/601006#M80442</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I&amp;nbsp;&lt;/SPAN&gt;have data that I retrieve from a database which is in a pipe-delimited string format. For example "70|71|69|78". These strings represent numeric measurements.&lt;/P&gt;&lt;P&gt;A large number of measurements are made and the resulting strings are really long. On top of that I have a large dataset of these strings.&lt;/P&gt;&lt;P&gt;What I need to do is convert the strings to a matrix ( vector really ) and run some aggregating statistics on the resulting vector ( Max, 95th percentile etc ). I haven't found a way to do it in SQL on the database side which would be better still.&lt;/P&gt;&lt;P&gt;Here's how I'm doing it today, using a typical lengthy string example.&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;ExampleStr = "70|71|71|72|72|72|72|72|74|74|74|74|74|74|74|74|74|74|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|76|75|75|76|76|76|75|75|76|76|75|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|77|76|77|76|77|76|76|77|76|76|76|76|76|76|76|76|77|76|76|76|76|77|77|77|77|76|76|77|77|76|76|76|76|77|76|77|76|76|76|76|76|77|76|76|76|77|77|77|76|76|77|76|76|76|77|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|77|77|77|77|77|77|77|77|76|77|77|76|76|77|76|76|77|76|77|76|77|76|77|77|77|76|76|76|77|77|76|76|77|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|77|77|77|76|77|77|76|76|77|76|77|76|77|77|77|77|77|76|76|77|77|77|77|77|77|76|76|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|76|77|77|76|76|76|77|77|77|77|77|77|77|77|77|76|76|77|77|77|77|77|77|77|77|77|77|76|76|76|77|77|77|77|77|77|76|77|77|77|76|77|77|77|77|76|76|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|76|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|76|77|77|77|77|76|77|76|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|78|78|78|78|78|78|78|78|78|78|77|78|78|77|78|77|77|77|78|78|78|78|78|78|77|78|77|78|78|78|78|78|78|77|78|78|78|77|78|77|78|78|78|77|78|77|78|78|78|78|78|77|78|78|78|78|78|78|78|78|78|77|78|78|78|77|78|78|78|77|77|78|78|78|78|78|78|78|78|78|78|78|78|78|77|77|78|77|77|78|77|78|78|78|78|78|78|78|78|77|77|78|78|78|77|77|78|78|78|78|78|78|78|78|78|78|78|78|77|78|78|78|78|78|78|77|78|78|78|78|77|78|78|78|78|77|77|78|78|78|78|78|78";
		t1 = HPTime();
		V = parse("["||substitute(ExampleStr,"|",",")||"]") ;
		t2 = HPTime();
		show((t2-t1)/1000); // takes about 0.9 milliSec&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So I replace the pipes with commas, then make the string look like a matrix by prefixing and suffixing matrix brackets. That part is quick.&lt;/P&gt;&lt;P&gt;Where the bulk of the time goes is in the Parse() call.&lt;/P&gt;&lt;P&gt;For this example with 775 values in the pipe-delimited string, it takes about 0.9 mSec to do the above code on my computer.&lt;/P&gt;&lt;P&gt;That might seem like very little time, but I need it to be at least an order of magnitude less. Because my data table, in my current example, has 762,000 rows of data!&lt;/P&gt;&lt;P&gt;Not every string is 775 values long, some are shorter, and not every iteration takes 0.9 mS, but in total it took almost 10 mins to go through the data table and do what I need to do&amp;nbsp; which is something like this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;dt &amp;lt;&amp;lt; new column("P95_Value");
foreachrow(
	V = parse("["||substitute(:StrColumn,"|",",")||"]") ;
	:P95_Value = VQuantile(V,0.95);	
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The VQuantile() call is not a problem, it is very fast. The bulk of the time goes on the parse() line.&lt;/P&gt;&lt;P&gt;I just wondered is there any smarter way to process this string and turn it into a vector, ideally in more like 0.09 milliSec or better !&lt;/P&gt;&lt;P&gt;Perhaps I may need to "farm out" this processing to a C# or Python script which may handle it faster ?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:36:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/601006#M80442</guid>
      <dc:creator>tsl</dc:creator>
      <dc:date>2023-06-08T16:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for tips for rapid conversion of string to matrix</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/601020#M80445</link>
      <description>&lt;P&gt;Here is an interesting way to solve your issue.&amp;nbsp; It uses the function Words() to convert the string into a JMP List with separate elements.&amp;nbsp; Then, by using it to create a new column in a data table, it converts the values to numeric.&amp;nbsp; Moving those values back into a matrix get to the result needed.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;theList=words(ExampleStr,"|");
dtConvert=new table("temp", new column("theList", set values(theList)));
theMatrix = dtConvert:theList&amp;lt;&amp;lt;get values;
close( dtConvert, nosave );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Feb 2023 19:33:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/601020#M80445</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-02-14T19:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for tips for rapid conversion of string to matrix</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/601646#M80502</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;, while that suggestion does indeed work, it is no faster than my current solution. In fact it is slower, taking about 4ms on my system vs 0.9 for the solution I'm using.&lt;/P&gt;&lt;P&gt;I can improve your solution by making the data table private, taking the total time down from ~ 4ms to ~&amp;nbsp; 1ms which is comparable although a little slower than what I'm doing today&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtConvert=new table("temp", new column("theList", set values(theList)), private);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm hoping I can find something much faster but I may need a C# solution to achieve that&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 21:13:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/601646#M80502</guid>
      <dc:creator>tsl</dc:creator>
      <dc:date>2023-02-15T21:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for tips for rapid conversion of string to matrix</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/601752#M80516</link>
      <description>&lt;P&gt;0.217 ms&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="2023-02-16_10-02-59.png" style="width: 587px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50203i3AA66AED6A4A40CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-02-16_10-02-59.png" alt="2023-02-16_10-02-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 23:59:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/601752#M80516</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-02-16T23:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for tips for rapid conversion of string to matrix</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/601753#M80517</link>
      <description>&lt;P&gt;Jim's&amp;nbsp;&lt;/P&gt;&lt;P&gt;0 ms&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 02:28:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/601753#M80517</guid>
      <dc:creator>UersK</dc:creator>
      <dc:date>2023-02-16T02:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for tips for rapid conversion of string to matrix</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/601755#M80518</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;How can write such data into a matrix?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;null direct removal&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Thank Jim!&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;txt="[[1668,3140325,7.25,7.27],[1660,4677712,7.17,null]]";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-02-16_11-18-48.png" style="width: 224px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50204iA0A5F1580E989915/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-02-16_11-18-48.png" alt="2023-02-16_11-18-48.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 03:19:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/601755#M80518</guid>
      <dc:creator>UersK</dc:creator>
      <dc:date>2023-02-16T03:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for tips for rapid conversion of string to matrix</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/602277#M80578</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17251"&gt;@lala&lt;/a&gt;&amp;nbsp;, note you were using Tick Seconds() which gives you times in seconds, whereas I was using HPTime() / 1000 which gives me times in Milliseconds. Your example is actually 216 msec which is 2 orders of magnitude worse than my solution which does it in &amp;lt; 1 ms, which is still much too slow for me !&lt;/P&gt;&lt;P&gt;Letting d1 be a private data table in your example does halve the time down to ~ 100msec, but still... much too slow for what I needed to do&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 23:12:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/602277#M80578</guid>
      <dc:creator>tsl</dc:creator>
      <dc:date>2023-02-16T23:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for tips for rapid conversion of string to matrix</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/602367#M80579</link>
      <description>&lt;P&gt;I see&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-02-17_08-06-13.png" style="width: 540px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50247i259812795682E942/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-02-17_08-06-13.png" alt="2023-02-17_08-06-13.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 00:07:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/602367#M80579</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-02-17T00:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for tips for rapid conversion of string to matrix</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/602540#M80591</link>
      <description>&lt;P&gt;CSV import can handle the pipe character directly. And MFI can run the imports in parallel. This example opens 1000 files in 2.2 seconds and stacks them in a single data table. If your files are already on disk, this might work well. Be careful with the delete directory command!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ExampleStr =
"70|71|71|72|72|72|72|72|74|74|74|74|74|74|74|74|74|74|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|76|75|75|76|76|76|75|75|76|76|75|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|77|76|77|76|77|76|76|77|76|76|76|76|76|76|76|76|77|76|76|76|76|77|77|77|77|76|76|77|77|76|76|76|76|77|76|77|76|76|76|76|76|77|76|76|76|77|77|77|76|76|77|76|76|76|77|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|77|77|77|77|77|77|77|77|76|77|77|76|76|77|76|76|77|76|77|76|77|76|77|77|77|76|76|76|77|77|76|76|77|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|77|77|77|76|77|77|76|76|77|76|77|76|77|77|77|77|77|76|76|77|77|77|77|77|77|76|76|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|76|77|77|76|76|76|77|77|77|77|77|77|77|77|77|76|76|77|77|77|77|77|77|77|77|77|77|76|76|76|77|77|77|77|77|77|76|77|77|77|76|77|77|77|77|76|76|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|76|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|76|77|77|77|77|76|77|76|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|78|78|78|78|78|78|78|78|78|78|77|78|78|77|78|77|77|77|78|78|78|78|78|78|77|78|77|78|78|78|78|78|78|77|78|78|78|77|78|77|78|78|78|77|78|77|78|78|78|78|78|77|78|78|78|78|78|78|78|78|78|77|78|78|78|77|78|78|78|77|77|78|78|78|78|78|78|78|78|78|78|78|78|78|77|77|78|77|77|78|77|78|78|78|78|78|78|78|78|77|77|78|78|78|77|77|78|78|78|78|78|78|78|78|78|78|78|78|77|78|78|78|78|78|78|77|78|78|78|78|77|78|78|78|78|77|77|78|78|78|78|78|78";
dir = "$temp/test";
Delete Directory( dir );
Create Directory( dir );
For( i = 1, i &amp;lt;= 1000, i += 1,
    Save Text File( Eval Insert( "^dir^/ExampleStr^right(char(1000+i),4)^.txt" ), Char( 1000 + i ) || "|" || ExampleStr )
);

t1 = HP Time();
Multiple File Import(
    &amp;lt;&amp;lt;Set Folder( dir ),
    &amp;lt;&amp;lt;Set Name Filter( "*.txt; " ),
    &amp;lt;&amp;lt;Set Name Enable( 1 ),
    &amp;lt;&amp;lt;Set CSV Has Headers( 0 ),
    &amp;lt;&amp;lt;Set CSV First Data Line( 1 ),
    &amp;lt;&amp;lt;Set CSV EOL Other( "|" )
) &amp;lt;&amp;lt; Import Data;
t2 = HP Time();
Show( (t2 - t1) / 1000 ); // 1000 files in 2.2 seconds&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Even the CSV one-at-a-time import&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17251"&gt;@lala&lt;/a&gt;&amp;nbsp; showed can be improved by letting the CSV import handle the pipe character, and then does not require a disk file like MFI does.&lt;/P&gt;
&lt;P&gt;The MFI script above was created by the MFI dialog, then the default options trimmed out for appearance.&lt;/P&gt;
&lt;P&gt;MFI can also add a column that has the file name which an analysis platform can use as a by variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 12:31:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/602540#M80591</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-02-17T12:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for tips for rapid conversion of string to matrix</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/602743#M80606</link>
      <description>&lt;P&gt;Here are some Oracle SQL solutions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using Oracle and you have APEX installed (Application Express), then apex_string.split will work.&amp;nbsp; Took .89 seconds on my DB&lt;/P&gt;
&lt;PRE&gt;SELECT COLUMN_VALUE FROM TABLE(apex_string.split(
        '70|71|71|72|72|72|72|72|74|74|74|74|74|74|74|74|74|74|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|76|75|75|76|76|76|75|75|76|76|75|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|77|76|77|76|77|76|76|77|76|76|76|76|76|76|76|76|77|76|76|76|76|77|77|77|77|76|76|77|77|76|76|76|76|77|76|77|76|76|76|76|76|77|76|76|76|77|77|77|76|76|77|76|76|76|77|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|77|77|77|77|77|77|77|77|76|77|77|76|76|77|76|76|77|76|77|76|77|76|77|77|77|76|76|76|77|77|76|76|77|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|77|77|77|76|77|77|76|76|77|76|77|76|77|77|77|77|77|76|76|77|77|77|77|77|77|76|76|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|76|77|77|76|76|76|77|77|77|77|77|77|77|77|77|76|76|77|77|77|77|77|77|77|77|77|77|76|76|76|77|77|77|77|77|77|76|77|77|77|76|77|77|77|77|76|76|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|76|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|76|77|77|77|77|76|77|76|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|78|78|78|78|78|78|78|78|78|78|77|78|78|77|78|77|77|77|78|78|78|78|78|78|77|78|77|78|78|78|78|78|78|77|78|78|78|77|78|77|78|78|78|77|78|77|78|78|78|78|78|77|78|78|78|78|78|78|78|78|78|77|78|78|78|77|78|78|78|77|77|78|78|78|78|78|78|78|78|78|78|78|78|78|77|77|78|77|77|78|77|78|78|78|78|78|78|78|78|77|77|78|78|78|77|77|78|78|78|78|78|78|78|78|78|78|78|78|77|78|78|78|78|78|78|77|78|78|78|78|77|78|78|78|78|77|77|78|78|78|78|78|78',
        '|'));&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have APEX installed then this will work, but it's slower (3.82 seconds):&lt;/P&gt;
&lt;PRE&gt;WITH rws AS
 (SELECT '70|71|71|72|72|72|72|72|74|74|74|74|74|74|74|74|74|74|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|75|76|75|75|76|76|76|75|75|76|76|75|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|77|76|77|76|77|76|76|77|76|76|76|76|76|76|76|76|77|76|76|76|76|77|77|77|77|76|76|77|77|76|76|76|76|77|76|77|76|76|76|76|76|77|76|76|76|77|77|77|76|76|77|76|76|76|77|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|76|76|77|77|77|77|77|77|77|77|76|77|77|76|76|77|76|76|77|76|77|76|77|76|77|77|77|76|76|76|77|77|76|76|77|76|76|76|76|76|76|76|77|76|76|76|76|76|76|76|77|77|77|76|77|77|76|76|77|76|77|76|77|77|77|77|77|76|76|77|77|77|77|77|77|76|76|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|76|77|77|76|76|76|77|77|77|77|77|77|77|77|77|76|76|77|77|77|77|77|77|77|77|77|77|76|76|76|77|77|77|77|77|77|76|77|77|77|76|77|77|77|77|76|76|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|76|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|76|77|77|77|77|76|77|76|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|77|76|77|77|77|77|77|77|77|77|77|77|77|77|77|78|78|78|78|78|78|78|78|78|78|77|78|78|77|78|77|77|77|78|78|78|78|78|78|77|78|77|78|78|78|78|78|78|77|78|78|78|77|78|77|78|78|78|77|78|77|78|78|78|78|78|77|78|78|78|78|78|78|78|78|78|77|78|78|78|77|78|78|78|77|77|78|78|78|78|78|78|78|78|78|78|78|78|78|77|77|78|77|77|78|77|78|78|78|78|78|78|78|78|77|77|78|78|78|77|77|78|78|78|78|78|78|78|78|78|78|78|78|77|78|78|78|78|78|78|77|78|78|78|78|77|78|78|78|78|77|77|78|78|78|78|78|78'
         str
    FROM dual)
SELECT regexp_substr(str, '[^|]+', 1, LEVEL) VALUE
  FROM rws
CONNECT BY LEVEL &amp;lt;= LENGTH(str) - LENGTH(REPLACE(str, '|')) + 1;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 19:18:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/602743#M80606</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2023-02-17T19:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for tips for rapid conversion of string to matrix</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/602747#M80610</link>
      <description>&lt;P&gt;Another brute force solution using words.&amp;nbsp; Speeds are comparable to parse.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;t1 = HPTime();
w = words(examplestr, "|");
n = nitems(w);
m = j(n, 1);
for (i = 1, i &amp;lt;= n, i++,
	m[i] = num(w[i]);
);
t2 = HPTime();
show((t2-t1)/1000); &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Feb 2023 19:33:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-for-tips-for-rapid-conversion-of-string-to-matrix/m-p/602747#M80610</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2023-02-17T19:33:09Z</dc:date>
    </item>
  </channel>
</rss>

