<?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: Saving a data table as a factors table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Saving-a-data-table-as-a-factors-table/m-p/192807#M41225</link>
    <description>&lt;P&gt;Probably you know this already, but if you use the GUI to get things the way you want, you can then 'Save Factors' to make the table you are after:&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="Screen Shot 2019-04-12 at 17.22.36.png" style="width: 672px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16866i6A38F15E1D2F36EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-04-12 at 17.22.36.png" alt="Screen Shot 2019-04-12 at 17.22.36.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you then want to use JSL, you can always get the script to regenerate the resulting table from 'Copy Table Script' from the red triangle. You then paste the clipboard into a new script window, and proceed from there . . .&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2019 16:28:21 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2019-04-12T16:28:21Z</dc:date>
    <item>
      <title>Saving a data table as a factors table</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-data-table-as-a-factors-table/m-p/192725#M41204</link>
      <description>&lt;P&gt;Good Afternoon,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way with either GUI or jsl to save an ordinary data table as a factors table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SaveAsFactorsExample.PNG" style="width: 367px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16864i02F0345E1CF5DB4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="SaveAsFactorsExample.PNG" alt="SaveAsFactorsExample.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 12:59:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-data-table-as-a-factors-table/m-p/192725#M41204</guid>
      <dc:creator>brfrancis</dc:creator>
      <dc:date>2019-04-12T12:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a data table as a factors table</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-data-table-as-a-factors-table/m-p/192767#M41214</link>
      <description>&lt;P&gt;Here is the script from a Saved Factors table.&amp;nbsp; It should give you a clue as to what it takes to make a Factors Table.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "zippy",
	Add Rows( 2 ),
	New Table Variable( "Table Type", "DOE Factor Table" ),
	New Column( "X1",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Property( "Design Role", Design Role( Continuous ) ),
		Set Property( "Factor Changes", Easy ),
		Set Selected,
		Set Values( [-1, 1] )
	),
	New Column( "X2",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Property( "Design Role", Design Role( Discrete Numeric ) ),
		Set Property( "Factor Changes", Easy ),
		Set Selected,
		Set Values( [-1, 1] )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Apr 2019 14:54:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-data-table-as-a-factors-table/m-p/192767#M41214</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-04-12T14:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a data table as a factors table</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-data-table-as-a-factors-table/m-p/192807#M41225</link>
      <description>&lt;P&gt;Probably you know this already, but if you use the GUI to get things the way you want, you can then 'Save Factors' to make the table you are after:&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="Screen Shot 2019-04-12 at 17.22.36.png" style="width: 672px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16866i6A38F15E1D2F36EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-04-12 at 17.22.36.png" alt="Screen Shot 2019-04-12 at 17.22.36.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you then want to use JSL, you can always get the script to regenerate the resulting table from 'Copy Table Script' from the red triangle. You then paste the clipboard into a new script window, and proceed from there . . .&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:28:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-data-table-as-a-factors-table/m-p/192807#M41225</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2019-04-12T16:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a data table as a factors table</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-data-table-as-a-factors-table/m-p/192964#M41263</link>
      <description>&lt;P&gt;Thanks for your answers Jim and Ian, I don't think I added enough detail to my question. I basically have a data table of a lot of factors (and their low/high, categorical values) that I want to get into a DOE dialog and don't wish to go through one by one and put them in the DOE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below worked (Jim you'll notice a code snippet from another question you answered). After doing this script, going into the DOE and using "Load Factors" populates with the required information.&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;dt1 = Data Table("FullDoE_factors"); //Many factors in this table but need design role  

nomdata = dt1 &amp;lt;&amp;lt; get column names( nominal );
condata = dt1 &amp;lt;&amp;lt; get column names( continuous );

For( i = 1, i &amp;lt;= N Items( nomdata ), i++,
  Column( dt1, Char( nomdata[i] ) ) &amp;lt;&amp;lt; Set Property("Design Role", Design Role( Categorical ))
);

For( i = 1, i &amp;lt;= N Items( condata ), i++,
  Column( dt1, Char( condata[i] ) ) &amp;lt;&amp;lt; Set Property("Design Role", Design Role( Continuous ))
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 08:59:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-data-table-as-a-factors-table/m-p/192964#M41263</guid>
      <dc:creator>brfrancis</dc:creator>
      <dc:date>2019-04-15T08:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a data table as a factors table</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-data-table-as-a-factors-table/m-p/192986#M41267</link>
      <description>&lt;P&gt;Is there a question?&amp;nbsp; Or are you indicating that you have your solution?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 09:58:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-data-table-as-a-factors-table/m-p/192986#M41267</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-04-15T09:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a data table as a factors table</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-data-table-as-a-factors-table/m-p/192991#M41270</link>
      <description>&lt;P&gt;Hi Jim, I have my solution and have now marked as such. Thanks for your time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 10:30:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-data-table-as-a-factors-table/m-p/192991#M41270</guid>
      <dc:creator>brfrancis</dc:creator>
      <dc:date>2019-04-15T10:30:14Z</dc:date>
    </item>
  </channel>
</rss>

