<?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: convert literal column names to a list of strings in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/convert-literal-column-names-to-a-list-of-strings/m-p/705214#M88972</link>
    <description>&lt;P&gt;Agree, this would be a nice option if we subset those columns into a private temp table say&lt;/P&gt;</description>
    <pubDate>Sun, 03 Dec 2023 12:05:01 GMT</pubDate>
    <dc:creator>datadad2</dc:creator>
    <dc:date>2023-12-03T12:05:01Z</dc:date>
    <item>
      <title>convert literal column names to a list of strings</title>
      <link>https://community.jmp.com/t5/Discussions/convert-literal-column-names-to-a-list-of-strings/m-p/705141#M88961</link>
      <description>&lt;P&gt;If I have a list of column literal references, how can I convert them to a list of the string names? Can it be done directly without subsetting the columns first?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;col_names = {:Column 1, :"Y (%)"n, :"Quotes \!":name\!""n, :group}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 00:25:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/convert-literal-column-names-to-a-list-of-strings/m-p/705141#M88961</guid>
      <dc:creator>datadad2</dc:creator>
      <dc:date>2023-12-03T00:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: convert literal column names to a list of strings</title>
      <link>https://community.jmp.com/t5/Discussions/convert-literal-column-names-to-a-list-of-strings/m-p/705157#M88965</link>
      <description>&lt;P&gt;If the 4 column names you are specifying are the complete list of columns in the data table, the easiest way to turn them into a list is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col_names = current data table() &amp;lt;&amp;lt; get column names( string );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The "string" argument tells the function to place each column name into the list as a literal string.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the Scripting Index for a more complete list of arguments and examples&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 04:42:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/convert-literal-column-names-to-a-list-of-strings/m-p/705157#M88965</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-12-03T04:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: convert literal column names to a list of strings</title>
      <link>https://community.jmp.com/t5/Discussions/convert-literal-column-names-to-a-list-of-strings/m-p/705184#M88968</link>
      <description>&lt;P&gt;Getting the directly in correct format is often the easiest option (like Jim did show). You can also convert the list for example by using Transform Each and &amp;lt;&amp;lt; Get Name.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = New Table("Untitled",
	Add Rows(0),
	Compress File When Saved(1),
	New Column("Column 1", Numeric, "Continuous", Format("Best", 12), Set Values([])),
	New Column("Y (%)", Numeric, "Continuous", Format("Best", 12), Set Values([])),
	New Column("Quotes \!":name\!"", Numeric, "Continuous", Format("Best", 12), Set Values([])),
	New Column("group", Numeric, "Continuous", Format("Best", 12), Set Values([]))
);
col_names = {:Column 1, :"Y (%)"n, :"Quotes \!":name\!""n, :group};

col_names_str = Transform Each({col_name}, col_names, col_name &amp;lt;&amp;lt; get name);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 03 Dec 2023 08:39:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/convert-literal-column-names-to-a-list-of-strings/m-p/705184#M88968</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-12-03T08:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: convert literal column names to a list of strings</title>
      <link>https://community.jmp.com/t5/Discussions/convert-literal-column-names-to-a-list-of-strings/m-p/705214#M88972</link>
      <description>&lt;P&gt;Agree, this would be a nice option if we subset those columns into a private temp table say&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 12:05:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/convert-literal-column-names-to-a-list-of-strings/m-p/705214#M88972</guid>
      <dc:creator>datadad2</dc:creator>
      <dc:date>2023-12-03T12:05:01Z</dc:date>
    </item>
  </channel>
</rss>

