<?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: csv Data Stored in Data Table Cell in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/csv-Data-Stored-in-Data-Table-Cell/m-p/370595#M62031</link>
    <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 23 Mar 2021 12:18:35 GMT</pubDate>
    <dc:creator>lou</dc:creator>
    <dc:date>2021-03-23T12:18:35Z</dc:date>
    <item>
      <title>csv Data Stored in Data Table Cell</title>
      <link>https://community.jmp.com/t5/Discussions/csv-Data-Stored-in-Data-Table-Cell/m-p/368768#M61862</link>
      <description>&lt;P&gt;I'm looking for help to extract a csv file that is stored within a cell in a data table.&amp;nbsp; I want to setup a script to iterate through this column and either extract to a new data table or save the cell contents as a csv file (that I can later open as a data table in JMP).&amp;nbsp; I've briefly looked at text to columns; however, there is so much data contained within each cell, this approach does not seem practical.&amp;nbsp; There are about 45 rows and 5 columns of header data. Then, the data consists of thousands of rows and 46 columns.&amp;nbsp; Any thoughts on how to handle this will be appreciated!&amp;nbsp; Lou&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="lou_0-1616008361225.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31341iE1D568AB1B666113/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lou_0-1616008361225.png" alt="lou_0-1616008361225.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:27:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/csv-Data-Stored-in-Data-Table-Cell/m-p/368768#M61862</guid>
      <dc:creator>lou</dc:creator>
      <dc:date>2023-06-10T23:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: csv Data Stored in Data Table Cell</title>
      <link>https://community.jmp.com/t5/Discussions/csv-Data-Stored-in-Data-Table-Cell/m-p/368828#M61870</link>
      <description>&lt;OL&gt;
&lt;LI&gt;In the file that has the cvsdata column, does that column have the string "Filename:," at the beginning of each cell, or are you using it just as a place holder for what will be the actual path to the file?&lt;/LI&gt;
&lt;LI&gt;Are there always the same number of header lines for each csv file, or will a script have to be written to get rid of the header records.&amp;nbsp; Or is there information in the header records that need to be retained in the resulting data table? Or do the header records contain the names of the 46 columns?&lt;/LI&gt;
&lt;LI&gt;Can you provide a sample csv file?&lt;/LI&gt;
&lt;LI&gt;Can you provide an example of what the output table needs to look like?&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 18 Mar 2021 10:11:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/csv-Data-Stored-in-Data-Table-Cell/m-p/368828#M61870</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-03-18T10:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: csv Data Stored in Data Table Cell</title>
      <link>https://community.jmp.com/t5/Discussions/csv-Data-Stored-in-Data-Table-Cell/m-p/368893#M61878</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what i did:&lt;/P&gt;&lt;P&gt;Import the text and substitute the delimeter character to parse it as a Matrix (I only have numbers, you may have to change it so its' a list. replace the ";" with space and the line end entry (could also be \!n or \!cr) with ",":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;text_raw = column(dt,data_list[1])[1];
temp = Substitute( Substitute( text_raw, ";", " " ), "\!r", "," );// prepare for parsing
raw_data = Parse( Eval( "[" || temp || "]" ) ); // text to matrix
n_data = nitems(raw_data);
			&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;- generate a new table with all the rows you need&lt;/P&gt;&lt;P&gt;- Add the number of rows of the matrix/list with addrows and fill the contend. Maybe by column of the list with an aditional inner loop&lt;/P&gt;&lt;P&gt;- copy data from the original table like test ID to all the rows so you have all the contend you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;repeat this for each row from the original table.&lt;/P&gt;&lt;P&gt;It may be a bit slow and you may speed it up by knowing in advance what you will fill (alwasy the same number of rows to add).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there may be a direct way from a raw text string to data table but I wasn't able to find it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another way would be to save the contend of the row as a text file and re-import it with the open command.&lt;/P&gt;&lt;P&gt;This may be easyer to code but may take longer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 08:19:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/csv-Data-Stored-in-Data-Table-Cell/m-p/368893#M61878</guid>
      <dc:creator>Mauro_Gerber</dc:creator>
      <dc:date>2021-03-18T08:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: csv Data Stored in Data Table Cell</title>
      <link>https://community.jmp.com/t5/Discussions/csv-Data-Stored-in-Data-Table-Cell/m-p/370595#M62031</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 12:18:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/csv-Data-Stored-in-Data-Table-Cell/m-p/370595#M62031</guid>
      <dc:creator>lou</dc:creator>
      <dc:date>2021-03-23T12:18:35Z</dc:date>
    </item>
  </channel>
</rss>

