<?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: Replace missing values with 0 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/64931#M34264</link>
    <description>&lt;P&gt;Hi Jim,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the above, but getting the folliowing error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;could not find column in access or evaluation of 'Column' , Column/*###*/(nc[i])&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Any idea what's going on?&amp;nbsp; &amp;nbsp;I use JMP 13, I'm not sure if the syntax isn't working for this version.&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;N&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2020 19:33:05 GMT</pubDate>
    <dc:creator>nshivan</dc:creator>
    <dc:date>2020-01-30T19:33:05Z</dc:date>
    <item>
      <title>Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/64614#M34229</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to replace all missing values in a data table with 0.&amp;nbsp; &amp;nbsp;The below script doesn't work.&amp;nbsp; I use JMP 13.&amp;nbsp; Is there any other way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;dt &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Current Data Table&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
nc &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; dt &lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt; get column names&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; Numeric &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;For&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; i &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; i &lt;SPAN class="token operator"&gt;&amp;lt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;N Items&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; nc &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; i&lt;SPAN class="token operator"&gt;++&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;
  nc&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;dt &lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt; get rows where&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Is Missing&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; nc&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;0&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 22:11:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/64614#M34229</guid>
      <dc:creator>nshivan</dc:creator>
      <dc:date>2018-07-27T22:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/64631#M34230</link>
      <description>&lt;P&gt;Here is the correct syntax for what you are trying to do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
nc = dt &amp;lt;&amp;lt; get column names( Numeric );
For( i = 1, i &amp;lt;= N Items( nc ), i++,
	Column( nc[i] )[dt &amp;lt;&amp;lt; get rows where( Is Missing( As Column( nc[i] ) ) )] = 0
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Jul 2018 00:25:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/64631#M34230</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-07-28T00:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/64931#M34264</link>
      <description>&lt;P&gt;Hi Jim,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the above, but getting the folliowing error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;could not find column in access or evaluation of 'Column' , Column/*###*/(nc[i])&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Any idea what's going on?&amp;nbsp; &amp;nbsp;I use JMP 13, I'm not sure if the syntax isn't working for this version.&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;N&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 19:33:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/64931#M34264</guid>
      <dc:creator>nshivan</dc:creator>
      <dc:date>2020-01-30T19:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/64943#M34266</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12425"&gt;@nshivan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I ran Jim's code in versions 13 and 14 and got no errors.&amp;nbsp; Maybe restart JMP and run it again?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 15:59:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/64943#M34266</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2018-07-30T15:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/64972#M34271</link>
      <description>&lt;P&gt;Hi Cameron,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I restarted JMP and the script works fine on the specific data table.&amp;nbsp; &amp;nbsp;The missing values get replaced with 0s.&amp;nbsp;But when I integrate to the rest of my script, it gives me the below error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;could not find column in access or evaluation of 'Column' , Column/*###*/(nc[i])&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Prior to this piece of script,&amp;nbsp; I have an original data table which I subset based on selected columns, stack the data, summarize anf then tabulate into the final data table.&amp;nbsp; I'm trying to replace missing values in the final data table with 0s.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm fairly new to JMP scripts, not sure why the integration is giving problems.&amp;nbsp; Any idea why this is happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 16:32:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/64972#M34271</guid>
      <dc:creator>nshivan</dc:creator>
      <dc:date>2018-07-30T16:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/65039#M34284</link>
      <description>&lt;P&gt;Something like this is hard to diagnose from a description.&amp;nbsp; You'd probably have to post your script (or at least enough of it to replicate the problem) for us to help with it.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 19:48:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/65039#M34284</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2018-07-30T19:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/65695#M34341</link>
      <description>&lt;P&gt;try being a little more specific in your script.&lt;/P&gt;
&lt;P&gt;give the data table that has the specific column in it a handle. &amp;nbsp;Like dt=table(); or something like that.&lt;/P&gt;
&lt;P&gt;then refer to the column in the table, &amp;nbsp;dt::nameOFCol&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is likely that your script is trying to modify a column that doesn't exist in the table that is current when this step runs.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 20:31:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/65695#M34341</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2018-08-01T20:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/228122#M45254</link>
      <description>&lt;P&gt;I use this script constantly.&amp;nbsp; Can't thank you enough for providing it.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 14:40:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/228122#M45254</guid>
      <dc:creator>Evan_Morris</dc:creator>
      <dc:date>2019-10-04T14:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/346473#M59715</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have been working on this exact problem with a hundreds of columns with hundreds of missing rows. &amp;nbsp;I wasn't happy with the performance and tried many approaches. &amp;nbsp;It seems that Recode solves this problem about 150 times faster than the current solution. &amp;nbsp;Sharing the code with anyone else that might care about speed. &amp;nbsp;Please let me know if you find something faster. &amp;nbsp;Every millisecond counts! &amp;nbsp;:)&lt;/img&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;replaceMissingStart = HP Time();

// replace missings with zeros
nc = dmdt &amp;lt;&amp;lt; get column names( Numeric );

For( i = 1, i &amp;lt;= N Items( nc ), i++,
	col = Column(dt,nc[i]);
	colname = col &amp;lt;&amp;lt; getname();

   	Eval(Parse(EvalInsert("\[
		dmdt &amp;lt;&amp;lt; Recode Column(
			:Name("^colname^"),
			{Map Value( _rcOrig, {., 0}, Unmatched( _rcNow ) )},
			Update Properties( 1 ),
			Target Column( :Name("^colname^") )
		);
	]\")));
	
	//Code from the Community
	//Column( nc[i] )[dmdt &amp;lt;&amp;lt; get rows where( Is Missing( As Column( nc[i] ) ) )] = 0;

	// standardize column attributes, change all to nominal
	col &amp;lt;&amp;lt; Set Modeling Type( "Nominal" ) 
);

replaceMissingStop = HP Time();
totalReplaceTime = replaceMissingStop-replaceMissingStart;
show(totalReplaceTime/1000000);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Thanks to Rebecca Lyzinski for the idea!!!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 03:40:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/346473#M59715</guid>
      <dc:creator>geoffrey_mann</dc:creator>
      <dc:date>2021-01-08T03:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/346553#M59730</link>
      <description>&lt;P&gt;FWIW, this sort of approach might be better. For 10,000 by 10,000 it took about 10 seconds on my laptop (including making the starting table):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

// Size the problem . . .
nr = 10000;		// Number of rows
nc = 10000;		// Number of columns
nm = 0.1;		// Proportion of missing values

// Make a table and inject some missing values
mat = J(nr*nc, 1, RandomNormal());
mat[RandomIndex(nr*nc, nr*nc*nm)] = .;
dt = AsTable(Shape(mat, nr, nc));
dt &amp;lt;&amp;lt; setName("Data with some missingness");

// Start here: Get values into a matrix (assumes contiguous numeric columns)
mat = dt &amp;lt;&amp;lt; getAsMatrix;
// Reshape as a vector
mat = Shape(mat, nr*nc, 1);
// Replace missing
mat[Loc(mat, .)] = 0;
// Reshape back to a matrix
mat = Shape(mat, nc, nc);
// Make a new table
dt2 = AsTable(Shape(mat, nr, nc));
dt2 &amp;lt;&amp;lt; setName("Data with missing set to zero values");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 12:23:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/346553#M59730</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2021-01-08T12:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/346564#M59734</link>
      <description>&lt;P&gt;Combining solutions, with data table subscripting...&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nr = 10000;		// Number of rows
nc = 10000;		// Number of columns
nm = 0.9;		// Proportion of missing values

// Make a table and inject some missing values
mat = J(nr*nc, 1, RandomNormal());
mat[RandomIndex(nr*nc, nr*nc*nm)] = .;
dt = AsTable(Shape(mat, nr, nc));
dt &amp;lt;&amp;lt; setName("Data with some missingness");


replaceMissingStart = HP Time();

nc = dt &amp;lt;&amp;lt; get column names( Numeric );
mat = dt[0,nc];
mat[Loc(mat, .)] = 0;
dt[0,nc] = mat;


replaceMissingStop = HP Time();
totalReplaceTime = replaceMissingStop-replaceMissingStart;
show(totalReplaceTime/1000000);


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;About 10 seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 14:15:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/346564#M59734</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-01-08T14:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/346640#M59744</link>
      <description>&lt;P&gt;Dear Ian and Craige,&lt;/P&gt;
&lt;P&gt;Thank you so much for your submissions. &amp;nbsp;I ran some preliminary tests and Ian's solution is more than 4 times faster than Recode for this and Craige's solution is almost 10 times faster. &amp;nbsp;If anyone would like to compare all 3 solutions, try the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Recode solution

nr = 10000;		// Number of rows
nc = 10000;		// Number of columns
nm = 0.9;		// Proportion of missing values

// Make a table and inject some missing values
mat = J(nr*nc, 1, RandomNormal());
mat[RandomIndex(nr*nc, nr*nc*nm)] = .;
dt = AsTable(Shape(mat, nr, nc));
dt &amp;lt;&amp;lt; setName("Data with some missingness");

replaceMissingStart = HP Time();

// replace missings with zeros
nc = dt &amp;lt;&amp;lt; get column names( Numeric );

For( i = 1, i &amp;lt;= N Items( nc ), i++,
	col = Column(dt,nc[i]);
	colname = col &amp;lt;&amp;lt; getname();

   	Eval(Parse(EvalInsert("\[
		dt &amp;lt;&amp;lt; Recode Column(
			:Name("^colname^"),
			{Map Value( _rcOrig, {., 0}, Unmatched( _rcNow ) )},
			Update Properties( 1 ),
			Target Column( :Name("^colname^") )
		);
	]\")));
	
	//Code from the Community
	//Column( nc[i] )[dmdt &amp;lt;&amp;lt; get rows where( Is Missing( As Column( nc[i] ) ) )] = 0;

	// standardize column attributes, change all to nominal
	//col &amp;lt;&amp;lt; Set Modeling Type( "Nominal" ) 
);

replaceMissingStop = HP Time();
totalReplaceTime = replaceMissingStop-replaceMissingStart;
show(totalReplaceTime/1000000);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Russ Wolfinger had mentioned he thought matrices would solve the problem more quickly, I guess that was what you two were thinking as well!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 16:18:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/346640#M59744</guid>
      <dc:creator>geoffrey_mann</dc:creator>
      <dc:date>2021-01-08T16:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/588871#M79380</link>
      <description>&lt;P&gt;in Can I replace missing values in Numeric column with "N/A" string?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 13:10:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/588871#M79380</guid>
      <dc:creator>Goblin_King</dc:creator>
      <dc:date>2023-01-11T13:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Replace missing values with 0</title>
      <link>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/588885#M79383</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt; Can I replace missing values in Numeric column with "N/A" string?&lt;/P&gt;&lt;P&gt;Use value labels to do that. Right click on column header, go to column properties, select Value Labels. Then put a period in the value and N/A in the label field as shown below. Then click add, and then ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To script it, follow the log recorder of above steps...&lt;/P&gt;&lt;P&gt;Data Table( "DT name" ):Column 904 &amp;lt;&amp;lt; Value Labels( {"." = "N/A"} ) &amp;lt;&amp;lt; Use Value Labels( 1 );&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="mikedriscoll_0-1673446010531.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48979i734892DD853F0101/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikedriscoll_0-1673446010531.png" alt="mikedriscoll_0-1673446010531.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 14:09:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Replace-missing-values-with-0/m-p/588885#M79383</guid>
      <dc:creator>mikedriscoll</dc:creator>
      <dc:date>2023-01-11T14:09:11Z</dc:date>
    </item>
  </channel>
</rss>

