<?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: Using a list of column names in a varability chart in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Using-a-list-of-column-names-in-a-varability-chart/m-p/659056#M84838</link>
    <description>&lt;P&gt;Thank you. That worked exactly as I wanted.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jul 2023 11:54:37 GMT</pubDate>
    <dc:creator>DSchweitzer</dc:creator>
    <dc:date>2023-07-17T11:54:37Z</dc:date>
    <item>
      <title>Using a list of column names in a varability chart</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-list-of-column-names-in-a-varability-chart/m-p/658694#M84797</link>
      <description>&lt;P&gt;When creating multiple variability graphs, JMP generates a script example similar to the code below that includes the multiple Y Response columns as a comma separated list.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Variability Chart(
	Y( :Col1, :Col2 ),
	Model( "Main Effect" ),
	X( :unit )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I have a list of columns that I would like to generate graphs for:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ListofColumnNames = dt &amp;lt;&amp;lt; Get Column Names();
ListofColumnNames = {Col1, Col2, ...};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Is there a way to expand this list in line to create essentially the same comma separated list that JMP created?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Variability Chart(
	Y( Column( ListofColumnNames ) ), &amp;nbsp; &amp;nbsp;// I know this syntax does not work, but conveys the intent.
	Model( "Main Effect" ),
	X( :unit )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I know that this can be accomplished using a For Loop&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Y( Column(ListofColumnNames[i])),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;but wondered if there was a way to avoid the For Loop and invoke the Variability Chart only one time by passing the entire list (for speed).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 14:54:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-list-of-column-names-in-a-varability-chart/m-p/658694#M84797</guid>
      <dc:creator>DSchweitzer</dc:creator>
      <dc:date>2023-07-15T14:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using a list of column names in a varability chart</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-list-of-column-names-in-a-varability-chart/m-p/658700#M84798</link>
      <description>&lt;P&gt;Change the Column() function to an Eval() function and it should all work.&amp;nbsp; Here is a working example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

ListofColumnNames = dt &amp;lt;&amp;lt; Get Column Names();
remove from(ListofColumnNames, 1, 4 );
// Just so there arn't so many columns to analyze
remove from(ListofColumnNames, 10, 118 );

Variability Chart(
	Y( eval( ListofColumnNames ) ),    // I know this syntax does not work, but conveys the intent.
	Model( "Main Effect" ),
	X( :lot_id )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Jul 2023 15:03:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-list-of-column-names-in-a-varability-chart/m-p/658700#M84798</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-07-15T15:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using a list of column names in a varability chart</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-list-of-column-names-in-a-varability-chart/m-p/659056#M84838</link>
      <description>&lt;P&gt;Thank you. That worked exactly as I wanted.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 11:54:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-list-of-column-names-in-a-varability-chart/m-p/659056#M84838</guid>
      <dc:creator>DSchweitzer</dc:creator>
      <dc:date>2023-07-17T11:54:37Z</dc:date>
    </item>
  </channel>
</rss>

