<?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: Is there a quick way to transform column data type? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/759154#M93854</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For Each( {col, index}, {:a, :b, :c},
		col &amp;lt;&amp;lt; Data Type( numeric ) &amp;lt;&amp;lt; 
		Set Modeling Type( "continuous" )
	);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&amp;nbsp; But it is still slowly when there are thousand columns with many values.&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2024 00:27:59 GMT</pubDate>
    <dc:creator>lehaofeng</dc:creator>
    <dc:date>2024-05-22T00:27:59Z</dc:date>
    <item>
      <title>Is there a quick way to transform column data type?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/757316#M93834</link>
      <description>&lt;P&gt;I have a question for help, thanks.&lt;BR /&gt;There is a table with more than 1200 columns, since many data values starting with “i”, there are about 900 columns, so I need to convert the column format from character to numeric, but with a for loop, it's too slow, is there a fast way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 19:53:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/757316#M93834</guid>
      <dc:creator>lehaofeng</dc:creator>
      <dc:date>2025-07-01T19:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a quick way to transform column data type?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/757376#M93836</link>
      <description>&lt;P&gt;For clarification, when you state '&lt;SPAN&gt;many data values starting with “i”', you are saying that within a column you have data values such as&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;i78&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this is what you are referring to, dose the value need to be changed to&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;178&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or just remove the "i" and leave&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;78&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;or just set the value to a missing value&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 11:28:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/757376#M93836</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-05-21T11:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a quick way to transform column data type?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/757655#M93839</link>
      <description>&lt;P&gt;You could try selecting the columns, right clicking and using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shampton82_0-1716298508118.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64441i670A8A087EB2897C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shampton82_0-1716298508118.png" alt="shampton82_0-1716298508118.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shampton82_2-1716298574876.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64443iA1009DCAF3275C96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shampton82_2-1716298574876.png" alt="shampton82_2-1716298574876.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 13:36:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/757655#M93839</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2024-05-21T13:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a quick way to transform column data type?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/759134#M93853</link>
      <description>&lt;P&gt;There are many values starting with i, we define these datas&amp;nbsp; as invalid values anyway, must be turned into missing values&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 00:23:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/759134#M93853</guid>
      <dc:creator>lehaofeng</dc:creator>
      <dc:date>2024-05-22T00:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a quick way to transform column data type?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/759154#M93854</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For Each( {col, index}, {:a, :b, :c},
		col &amp;lt;&amp;lt; Data Type( numeric ) &amp;lt;&amp;lt; 
		Set Modeling Type( "continuous" )
	);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&amp;nbsp; But it is still slowly when there are thousand columns with many values.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 00:27:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/759154#M93854</guid>
      <dc:creator>lehaofeng</dc:creator>
      <dc:date>2024-05-22T00:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a quick way to transform column data type?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/759547#M93856</link>
      <description>&lt;P&gt;You can try to speed it up by making your data table invisible (open it as invisible/query it as invisible or use &amp;lt;&amp;lt; show window(0)) and using &amp;lt;&amp;lt; Begin Data Update before and &amp;lt;&amp;lt; End Data Update after your loop.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 05:02:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/759547#M93856</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-05-22T05:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a quick way to transform column data type?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/759594#M93858</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col_names=dt&amp;lt;&amp;lt;get column names(string);
st=hptime();
dt&amp;lt;&amp;lt;Begin Data Update;

for each({col,index},col_names,
	column(dt,col)&amp;lt;&amp;lt;data type(numeric)&amp;lt;&amp;lt;set modeling type(continuous)
);

dt &amp;lt;&amp;lt; End Data Update;
en=hptime();
show(en-st)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&amp;nbsp; It's still slow, 20minutes...&lt;/P&gt;&lt;P&gt;Is there a way to change the format before data importing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 06:04:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/759594#M93858</guid>
      <dc:creator>lehaofeng</dc:creator>
      <dc:date>2024-05-22T06:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a quick way to transform column data type?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/759595#M93859</link>
      <description>&lt;P&gt;Maybe (I don't think you have defined where the data is coming from at all)? In best case you can fix your data at the source&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 06:04:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-quick-way-to-transform-column-data-type/m-p/759595#M93859</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-05-22T06:04:44Z</dc:date>
    </item>
  </channel>
</rss>

