<?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 Retrieve a Column Group in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Retrieve-a-Column-Group/m-p/855766#M102674</link>
    <description>&lt;P&gt;I have columns held within groups and I want to be able to reference the group to which each column belongs as a string while I iterate on them.&amp;nbsp; Is that possible?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Mar 2025 18:33:49 GMT</pubDate>
    <dc:creator>SpannerHead</dc:creator>
    <dc:date>2025-03-26T18:33:49Z</dc:date>
    <item>
      <title>Retrieve a Column Group</title>
      <link>https://community.jmp.com/t5/Discussions/Retrieve-a-Column-Group/m-p/855766#M102674</link>
      <description>&lt;P&gt;I have columns held within groups and I want to be able to reference the group to which each column belongs as a string while I iterate on them.&amp;nbsp; Is that possible?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 18:33:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Retrieve-a-Column-Group/m-p/855766#M102674</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-03-26T18:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve a Column Group</title>
      <link>https://community.jmp.com/t5/Discussions/Retrieve-a-Column-Group/m-p/855786#M102677</link>
      <description>&lt;P&gt;Use &amp;lt;&amp;lt; Get Column Group Names to get list of the names and then &amp;lt;&amp;lt; Get Column Group to get the list of columns&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1743014300235.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74280i69071966351FC736/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1743014300235.png" alt="jthi_0-1743014300235.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: If you wish to have strings, loop over the list of columns using Transform Each and then convert them to strings using &amp;lt;&amp;lt; Get Name&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Cities.jmp");
dt &amp;lt;&amp;lt; group columns("xy", {:X, :y});
dt &amp;lt;&amp;lt; group columns("pollutants", :Ozone :: :Lead);

colrefs = dt &amp;lt;&amp;lt; get column group("xy");

colnames = Transform Each({colref}, colrefs,
	colref &amp;lt;&amp;lt; get name
);


show(colrefs, colnames);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 18:40:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Retrieve-a-Column-Group/m-p/855786#M102677</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-03-26T18:40:57Z</dc:date>
    </item>
  </channel>
</rss>

