<?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 Data Table Column With Matrix Values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Data-Table-Column-With-Matrix-Values/m-p/38843#M22718</link>
    <description>&lt;P&gt;I have a table with a column that contains a matrix in every row. I am writing a script to search within the matrix of a specific row. However, the problem I am running into is that when I try to retrieve a value from that column it returns as " { [1, 2, 3, 4] } " instead of as a matrix. This means I cannot use the Loc() function that I need. I figured out that if I subscript the list with a 1 (as in :Col[row][1]) then I get rid of the list brackets but I am still left with the&amp;nbsp;matrix as a string ( "[1, 2, 3, 4]" ) and I still cannot use it in matrix functions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong and how can I get this to work???&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2017 15:52:10 GMT</pubDate>
    <dc:creator>aallman</dc:creator>
    <dc:date>2017-05-04T15:52:10Z</dc:date>
    <item>
      <title>Data Table Column With Matrix Values</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Table-Column-With-Matrix-Values/m-p/38843#M22718</link>
      <description>&lt;P&gt;I have a table with a column that contains a matrix in every row. I am writing a script to search within the matrix of a specific row. However, the problem I am running into is that when I try to retrieve a value from that column it returns as " { [1, 2, 3, 4] } " instead of as a matrix. This means I cannot use the Loc() function that I need. I figured out that if I subscript the list with a 1 (as in :Col[row][1]) then I get rid of the list brackets but I am still left with the&amp;nbsp;matrix as a string ( "[1, 2, 3, 4]" ) and I still cannot use it in matrix functions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong and how can I get this to work???&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 15:52:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Table-Column-With-Matrix-Values/m-p/38843#M22718</guid>
      <dc:creator>aallman</dc:creator>
      <dc:date>2017-05-04T15:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Data Table Column With Matrix Values</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Table-Column-With-Matrix-Values/m-p/38847#M22720</link>
      <description>&lt;P&gt;My guess is that the column has a data type of character.&lt;/P&gt;
&lt;P&gt;You can convert the string to a list using Parse, then take the first element as a matrix:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;value = " { [1, 2, 3, 4] } ";
lst = Parse(value);
show(lst);
mat = lst[1];
show(mat);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 May 2017 16:20:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Table-Column-With-Matrix-Values/m-p/38847#M22720</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2017-05-04T16:20:51Z</dc:date>
    </item>
  </channel>
</rss>

