<?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: How to preserve numeric column types when concatenating tables with empty columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-preserve-numeric-column-types-when-concatenating-tables/m-p/915813#M107619</link>
    <description>&lt;P&gt;Hello, thank you I didn't now about these functions it solved my issue !&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Nov 2025 10:16:36 GMT</pubDate>
    <dc:creator>SophieCuvillier</dc:creator>
    <dc:date>2025-11-28T10:16:36Z</dc:date>
    <item>
      <title>How to preserve numeric column types when concatenating tables with empty columns</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-preserve-numeric-column-types-when-concatenating-tables/m-p/915633#M107601</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two tables ((imported from csv files initially) that I want to concatenate, each containing only one column, “Column 1” (see screenshot below). In the first table, there is no data; it is empty and of the Nominal character type (defaut, when exporting the csv).&lt;/P&gt;
&lt;P&gt;In the second table, there is numerical data.&lt;/P&gt;
&lt;P&gt;When I concatenate the two tables, the final format is nominal character even though there is numerical data.&lt;/P&gt;
&lt;P&gt;Is there any option to have this detected automatically as numeric?&lt;/P&gt;
&lt;P&gt;Additional information:&lt;BR /&gt;- It is automated, I have this problem on many columns.&lt;BR /&gt;- I do not know in advance which columns are numeric.&lt;BR /&gt;- I do not know in advance which tables have no data.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SophieCuvillier_0-1764257897084.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87832i9BCA50230A604948/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SophieCuvillier_0-1764257897084.png" alt="SophieCuvillier_0-1764257897084.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 15:43:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-preserve-numeric-column-types-when-concatenating-tables/m-p/915633#M107601</guid>
      <dc:creator>SophieCuvillier</dc:creator>
      <dc:date>2025-11-27T15:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to preserve numeric column types when concatenating tables with empty columns</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-preserve-numeric-column-types-when-concatenating-tables/m-p/915648#M107603</link>
      <description>&lt;P&gt;You can check if columns are numeric before concatenation and update final result accordingly. Or you could go over character columns after you are done concatenating and change them. I haven't tried this exact method myself (&amp;lt;&amp;lt; fail on conversion), but I think it should work fine&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = New Table("My Table",
	New Column("col1", Character, "Nominal", Set Values({"123", "456", "abc", "789", "", "def"})),
	New Column("col2", Character, "Nominal",Set Values({"123", "456", "789", "", "", ""}))
);

For Each({colname}, dt &amp;lt;&amp;lt; Get Column Names("Character", "String"),
	r = Column(dt, colname) &amp;lt;&amp;lt; Set Data Type("Numeric", &amp;lt;&amp;lt;Fail On Conversion Error, &amp;lt;&amp;lt;Return Failed Rows);

	If(N Items(r) == 0,
		Column(dt, colname) &amp;lt;&amp;lt; Set Modeling Type("Continuous");
	);
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Nov 2025 15:58:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-preserve-numeric-column-types-when-concatenating-tables/m-p/915648#M107603</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-11-27T15:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to preserve numeric column types when concatenating tables with empty columns</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-preserve-numeric-column-types-when-concatenating-tables/m-p/915813#M107619</link>
      <description>&lt;P&gt;Hello, thank you I didn't now about these functions it solved my issue !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 10:16:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-preserve-numeric-column-types-when-concatenating-tables/m-p/915813#M107619</guid>
      <dc:creator>SophieCuvillier</dc:creator>
      <dc:date>2025-11-28T10:16:36Z</dc:date>
    </item>
  </channel>
</rss>

