<?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 Fill in Missing Values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Fill-in-Missing-Values/m-p/827225#M100870</link>
    <description>&lt;P&gt;I have a transpose with an odd symptom&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="SpannerHead_0-1736805007588.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71909i7B74882A739B2C5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SpannerHead_0-1736805007588.png" alt="SpannerHead_0-1736805007588.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When the transpose executes and the first cell in a column is "Batch 0" and all the subsequent cells are empty, I would like to fill those cells as "Batch 1".&amp;nbsp; Any clue how I could do that?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2025 21:52:23 GMT</pubDate>
    <dc:creator>SpannerHead</dc:creator>
    <dc:date>2025-01-13T21:52:23Z</dc:date>
    <item>
      <title>Fill in Missing Values</title>
      <link>https://community.jmp.com/t5/Discussions/Fill-in-Missing-Values/m-p/827225#M100870</link>
      <description>&lt;P&gt;I have a transpose with an odd symptom&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="SpannerHead_0-1736805007588.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71909i7B74882A739B2C5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SpannerHead_0-1736805007588.png" alt="SpannerHead_0-1736805007588.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When the transpose executes and the first cell in a column is "Batch 0" and all the subsequent cells are empty, I would like to fill those cells as "Batch 1".&amp;nbsp; Any clue how I could do that?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 21:52:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fill-in-Missing-Values/m-p/827225#M100870</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-01-13T21:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fill in Missing Values</title>
      <link>https://community.jmp.com/t5/Discussions/Fill-in-Missing-Values/m-p/827247#M100871</link>
      <description>&lt;P&gt;Here is a little script that will do what you want&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1736806906722.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71910iDE5443716A96A55D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1736806906722.png" alt="txnelson_0-1736806906722.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( :"RSC TCANEAL/ furnace/ 5139"n[1] == "Batch 0",
	Try(
		:"RSC TCANEAL/ furnace/ 5139"n[Current Data Table() &amp;lt;&amp;lt; get rows where(
			Is Missing( :"RSC TCANEAL/ furnace/ 5139"n )
		)] = "Batch 1"
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is a complete example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Table( "Example",
	Add Rows( 25 ),
	New Column( "RSC TCANEAL/ furnace/ 5139",
		Character,
		Set Values(
			{"Batch 0", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
			"", ""}
		)
	)
);

If( :"RSC TCANEAL/ furnace/ 5139"n[1] == "Batch 0",
	Try(
		:"RSC TCANEAL/ furnace/ 5139"n[Current Data Table() &amp;lt;&amp;lt; get rows where(
			Is Missing( :"RSC TCANEAL/ furnace/ 5139"n )
		)] = "Batch 1"
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jan 2025 22:22:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fill-in-Missing-Values/m-p/827247#M100871</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-01-13T22:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Fill in Missing Values</title>
      <link>https://community.jmp.com/t5/Discussions/Fill-in-Missing-Values/m-p/827250#M100872</link>
      <description>&lt;P&gt;Jim, thanks.&amp;nbsp; I modified this to iterate through columns from 4 onward and only act on columns that were empty apart from the first row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;colList1 = Data Table( "Transpose of History" ) &amp;lt;&amp;lt; get column names( string );&lt;BR /&gt;&lt;BR /&gt;For( i = 1, i &amp;lt;= N Cols( Data Table( "Transpose of History" ) ), i++,
	If( Column(colList1[i])[1] == "Batch 0" &amp;amp; Col N Missing( As Column(colList1[i]) ) == NRow()-1,
	Try(
		Column(colList1[i])[Current Data Table() &amp;lt;&amp;lt; get rows where(
			Is Missing( As Column(colList1[i]) )
		)] = "Batch 1"
	)
)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jan 2025 23:23:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fill-in-Missing-Values/m-p/827250#M100872</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-01-13T23:23:37Z</dc:date>
    </item>
  </channel>
</rss>

