<?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: Recording and recovering metadata in a table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Recording-and-recovering-metadata-in-a-table/m-p/372704#M62259</link>
    <description>Can you provide an example of what the contents of the new column property would look like?&lt;BR /&gt;</description>
    <pubDate>Tue, 30 Mar 2021 15:40:23 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-03-30T15:40:23Z</dc:date>
    <item>
      <title>Recording and recovering metadata in a table</title>
      <link>https://community.jmp.com/t5/Discussions/Recording-and-recovering-metadata-in-a-table/m-p/372689#M62258</link>
      <description>&lt;P&gt;I have a stacked data table with three columns that contain strings and another numeric.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A: unique identifier&lt;/P&gt;&lt;P&gt;B: text&lt;/P&gt;&lt;P&gt;C: text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As, Bs, Cs, Values&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;A1, B1, C1, value11&lt;/P&gt;&lt;P&gt;A1, B1, C1, value12&lt;/P&gt;&lt;P&gt;A1, B1, C1, value13&lt;/P&gt;&lt;P&gt;A2, B2, C2, value21&lt;/P&gt;&lt;P&gt;A2, B2, C2, value22&lt;/P&gt;&lt;P&gt;A2, B2, C2, value23&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now, I am creating a concatenated column name with the form "A (B) [C]" which I split to have the final table like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A1 (B1) [C1],&amp;nbsp; A2 (B2) [C2],&amp;nbsp;&lt;/P&gt;&lt;P&gt;Value 11,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Value 21&amp;nbsp;&lt;/P&gt;&lt;P&gt;Value 12,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Value 22&lt;/P&gt;&lt;P&gt;Value 13,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Value 23&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a new column property that saves the As in this final table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need a loop with two lists to insert this property column by column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:09:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Recording-and-recovering-metadata-in-a-table/m-p/372689#M62258</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2023-06-09T22:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Recording and recovering metadata in a table</title>
      <link>https://community.jmp.com/t5/Discussions/Recording-and-recovering-metadata-in-a-table/m-p/372704#M62259</link>
      <description>Can you provide an example of what the contents of the new column property would look like?&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2021 15:40:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Recording-and-recovering-metadata-in-a-table/m-p/372704#M62259</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-03-30T15:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Recording and recovering metadata in a table</title>
      <link>https://community.jmp.com/t5/Discussions/Recording-and-recovering-metadata-in-a-table/m-p/372740#M62264</link>
      <description>Sure.&lt;BR /&gt;&lt;BR /&gt;Column: A1 (B1) [C1]&lt;BR /&gt;A_property: A1&lt;BR /&gt;&lt;BR /&gt;Column: A2 (B2) [C2]&lt;BR /&gt;A_property: A2</description>
      <pubDate>Tue, 30 Mar 2021 16:47:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Recording-and-recovering-metadata-in-a-table/m-p/372740#M62264</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2021-03-30T16:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Recording and recovering metadata in a table</title>
      <link>https://community.jmp.com/t5/Discussions/Recording-and-recovering-metadata-in-a-table/m-p/372752#M62265</link>
      <description>&lt;P&gt;If I understand correctly what you want - You have the property value already in the column name so you can could get it from there:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("Untitled",
	Add Rows(3),
	Compress File When Saved(1),
	New Column("A1 (B1) [C1]",
		Character,
		"Nominal",
		Set Values({"Value 11", "Value 12", "Value 13"})
	),
	New Column("A2 (B2) [C2]",
		Character,
		"Nominal",
		Set Values({"Value 21", "Value 22", "Value 23"})
	)
);

colNames = dt &amp;lt;&amp;lt; Get Column Names("String");

For(i = 1, i &amp;lt;= N Items(colNames), i++,
	aVal = Word(1, colNAmes[i]);
	Column(dt, colNames[i]) &amp;lt;&amp;lt; Set Property("A_property", aVal);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Mar 2021 16:56:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Recording-and-recovering-metadata-in-a-table/m-p/372752#M62265</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-03-30T16:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Recording and recovering metadata in a table</title>
      <link>https://community.jmp.com/t5/Discussions/Recording-and-recovering-metadata-in-a-table/m-p/373550#M62322</link>
      <description>Sometimes As can have the pattern "abc (cde)" so better to use a mapping from the first table instead of Word().&lt;BR /&gt;&lt;BR /&gt;is there a JSL dictionary we can use so the key is the column name and the value is the new property to save?&lt;BR /&gt;{"A1 (B1) [C1]": "A1",&lt;BR /&gt;"A2 (B2) [C2]": "A2"}</description>
      <pubDate>Thu, 01 Apr 2021 15:19:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Recording-and-recovering-metadata-in-a-table/m-p/373550#M62322</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2021-04-01T15:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Recording and recovering metadata in a table</title>
      <link>https://community.jmp.com/t5/Discussions/Recording-and-recovering-metadata-in-a-table/m-p/373572#M62324</link>
      <description>&lt;P&gt;Check out Associative Arrays&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 15:36:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Recording-and-recovering-metadata-in-a-table/m-p/373572#M62324</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-04-01T15:36:36Z</dc:date>
    </item>
  </channel>
</rss>

