<?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: Nested Recode in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Nested-Recode/m-p/510393#M73766</link>
    <description>&lt;P&gt;I am not aware of the Recode having the capability you are asking about, however it is easily handled in an If() function&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt &amp;lt;&amp;lt; New Column( "Stature",
	Character( 40 ),
	"Nominal",
	Formula(
		If(
			:age == 12 &amp;amp; :Height == 59, "short tween",
			:age == 12 &amp;amp; :height == 66, "Tall tween",
			:age == 17 &amp;amp; :height == 70, "Tall teenager",
			""
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 15 Jun 2022 05:38:05 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-06-15T05:38:05Z</dc:date>
    <item>
      <title>Nested Recode</title>
      <link>https://community.jmp.com/t5/Discussions/Nested-Recode/m-p/510310#M73765</link>
      <description>&lt;P&gt;Is there a way to nest a Recode on a single column based on multiple columns using JSL?&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 = Open("$SAMPLE_DATA/Big Class.jmp");

dt &amp;lt;&amp;lt; New Column( "Stature",
		Character( 40 ),
		"Nominal",
		Formula(
			Recode(
				:age &amp;amp; :height,
				{Map Value(
					_rcOrig, {
					"12" &amp;amp; "59", "short tween",
					"12" &amp;amp; "66", "Tall tween",
					"17" &amp;amp; "70", "Tall teenager"
					},
					Unmatched( empty() )
				)}
			)
		),
	Set Display Width( 56 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:49:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nested-Recode/m-p/510310#M73765</guid>
      <dc:creator>sciguy</dc:creator>
      <dc:date>2023-06-10T23:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Recode</title>
      <link>https://community.jmp.com/t5/Discussions/Nested-Recode/m-p/510393#M73766</link>
      <description>&lt;P&gt;I am not aware of the Recode having the capability you are asking about, however it is easily handled in an If() function&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt &amp;lt;&amp;lt; New Column( "Stature",
	Character( 40 ),
	"Nominal",
	Formula(
		If(
			:age == 12 &amp;amp; :Height == 59, "short tween",
			:age == 12 &amp;amp; :height == 66, "Tall tween",
			:age == 17 &amp;amp; :height == 70, "Tall teenager",
			""
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jun 2022 05:38:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nested-Recode/m-p/510393#M73766</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-06-15T05:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Recode</title>
      <link>https://community.jmp.com/t5/Discussions/Nested-Recode/m-p/510527#M73794</link>
      <description>&lt;P&gt;This worked perfectly. Should have gone with an if() function to begin with. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 00:06:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nested-Recode/m-p/510527#M73794</guid>
      <dc:creator>sciguy</dc:creator>
      <dc:date>2022-06-16T00:06:26Z</dc:date>
    </item>
  </channel>
</rss>

