<?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 Missing( &amp;quot; &amp;quot; ) returns True? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/809755#M99098</link>
    <description>&lt;P&gt;Little to add to what is said. Maybe a question:&lt;BR /&gt;"So, there is NO&amp;nbsp;&lt;SPAN&gt;space cell" - no chance to create one?&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Interesting, even via a formula, the space is converted to "".&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Example",
	Add Rows( 1 ),
	New Column( "space and A", Character, "Nominal", Set Values( {" A"} ) ),
	New Column( "Space", Character, "Nominal", Formula( Substr(:space and A,1,1) ) ),
	New Column( "Space Missing?", Formula( Is Missing( :Space ) ))
);

Show("x"||Substr(:space and A[1],1,1) ||"x"); // sure, JSL doesn't lose the space
Show("x"||:space_v2 [1] ||"x") //automatically trimmed, even with a formula!&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Under the line, if it's impossible to create a space cell, maybe one could reshape the riddle such that there is a solution.&lt;BR /&gt;e.g. don't take the space and save it in the cell - add a character - and then check if it's just a character or a character with a space in front.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2024 22:07:50 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-11-05T22:07:50Z</dc:date>
    <item>
      <title>Is Missing( " " ) returns True?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/468612#M71244</link>
      <description>&lt;P&gt;I would like to differentiate a space cell and an empty cell.&amp;nbsp; The &lt;STRONG&gt;Is Missing()&lt;/STRONG&gt; function interprets both as missing.&amp;nbsp; Is there a better way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using JMP 16.2.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Example",
	Add Rows( 1 ),
	New Column( "Empty", Character, "Nominal", Set Values( {""} ) ),
	New Column( "Empty Missing?",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( Is Missing( :Empty ) )
	),
	New Column( "Space", Character, "Nominal", Set Values( {" "} ) ),
	New Column( "Space Missing?",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( Is Missing( :Space ) )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:49:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/468612#M71244</guid>
      <dc:creator>robot</dc:creator>
      <dc:date>2023-06-10T20:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is Missing( " " ) returns True?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/468669#M71246</link>
      <description>&lt;P&gt;A blank is just "" and it seems like JMP trims the inputs of spaces to just be blank again.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
dt = New Table( "Example",
	New Column( "Fun", Character, Set Values( {" ", "", "A"} ) ),
	New Column("State", character,  Formula(
		Match(:Fun, 
			"", "Blank", 
			" ", "Space"
		, // else
			"Filled"
		)
	))
);

dt:Fun &amp;lt;&amp;lt; Get Values(); // {"", "", "A"}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;At least in 16.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know in earlier versions you couldn't even do ismissing() on non numbers.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 23:28:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/468669#M71246</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2022-03-10T23:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is Missing( " " ) returns True?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/468672#M71248</link>
      <description>&lt;P&gt;To add to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2610"&gt;@vince_faller&lt;/a&gt;&amp;nbsp;, JMP does convert " " to "" in inputting into a data table, however, it does not conver " a" to "a".&amp;nbsp; That is, when valid characters do exist in the given cell, JMP maintains the leading spaces( "20" hex).&amp;nbsp; JMP also has escape strings to input blanks( \!b )( "08" hex ), and nulls( \!0 )( "" hex ).&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 23:39:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/468672#M71248</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-03-10T23:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is Missing( " " ) returns True?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/469632#M71353</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2610"&gt;@vince_faller&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;.&amp;nbsp; This is not the answer I was hoping for, but it does explain the behavior.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 19:05:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/469632#M71353</guid>
      <dc:creator>robot</dc:creator>
      <dc:date>2022-03-14T19:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is Missing( " " ) returns True?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/809755#M99098</link>
      <description>&lt;P&gt;Little to add to what is said. Maybe a question:&lt;BR /&gt;"So, there is NO&amp;nbsp;&lt;SPAN&gt;space cell" - no chance to create one?&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Interesting, even via a formula, the space is converted to "".&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Example",
	Add Rows( 1 ),
	New Column( "space and A", Character, "Nominal", Set Values( {" A"} ) ),
	New Column( "Space", Character, "Nominal", Formula( Substr(:space and A,1,1) ) ),
	New Column( "Space Missing?", Formula( Is Missing( :Space ) ))
);

Show("x"||Substr(:space and A[1],1,1) ||"x"); // sure, JSL doesn't lose the space
Show("x"||:space_v2 [1] ||"x") //automatically trimmed, even with a formula!&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Under the line, if it's impossible to create a space cell, maybe one could reshape the riddle such that there is a solution.&lt;BR /&gt;e.g. don't take the space and save it in the cell - add a character - and then check if it's just a character or a character with a space in front.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 22:07:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/809755#M99098</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-05T22:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is Missing( " " ) returns True?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/809770#M99104</link>
      <description>&lt;P&gt;I guess there is a rule that trailing spaces are automatically removed from strings when saving them in a data table?&lt;BR /&gt;because they are hard to detect (much harder than for leading spaces).&lt;BR /&gt;An a simple space " " is treated as trailing space - extremely hard to be seen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this rule mentioned in the documentation? couldn't find it ...&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1730896397743.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69891i11541F003CAC341D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1730896397743.png" alt="hogi_0-1730896397743.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting, this rule even applies for Column Formulas: trailing spaces are simply removed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1730888106448.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69888iF4E92F8C807ABBE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1730888106448.png" alt="hogi_0-1730888106448.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = new table("test");
New Column( "input", Character, set values({"ABC","A B"}) );
New Column( "first 2 letters",	Character,	Formula( Substr( :input, 1, 2 ) ));
New Column( "length first_two_letters",	Formula( Length( :first 2 letters ) ))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 12:36:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/809770#M99104</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-06T12:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is Missing( " " ) returns True?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/809772#M99105</link>
      <description>&lt;P&gt;Concerning the original question -&amp;nbsp; you could answer:&lt;BR /&gt;The conclusion "&lt;EM&gt;&lt;STRONG&gt;Is Missing( " " )&amp;nbsp;returns True"&amp;nbsp;&lt;/STRONG&gt; &amp;nbsp;&lt;/EM&gt;was a bit misleading: The space WAS NO space.&lt;/P&gt;&lt;P&gt;If it's a cell in a data table, the table converted it to "".&lt;BR /&gt;&lt;BR /&gt;Along this line, just open JSL editor and run&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;show(length(" "))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it returns&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1730888394597.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69889iEE883B37C831155A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1730888394597.png" alt="hogi_1-1730888394597.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, besides the automatically applied magic in data tables, JSL itself doesn't replace the string,&lt;/P&gt;&lt;P&gt;and therefore:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;show(is missing(" "))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;returns ...&lt;BR /&gt;&lt;BR /&gt;Ouch!&lt;BR /&gt;why ?!?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 10:26:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-Missing-quot-quot-returns-True/m-p/809772#M99105</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-06T10:26:58Z</dc:date>
    </item>
  </channel>
</rss>

