<?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: Gauge R&amp;amp;R Report into a data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/279608#M54195</link>
    <description>Thankyou so much! i ran in to the problem where&lt;BR /&gt;Report( variability chart[1] )["GaugeR&amp;amp;R"][Table Box( 1 )] &amp;lt;&amp;lt; make combined data table would only save the first column , i see now how its supposed to be done</description>
    <pubDate>Thu, 16 Jul 2020 19:05:23 GMT</pubDate>
    <dc:creator>Flavy</dc:creator>
    <dc:date>2020-07-16T19:05:23Z</dc:date>
    <item>
      <title>Gauge R&amp;R Report into a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/279451#M54170</link>
      <description>&lt;P&gt;I need to create&amp;nbsp;Gauge R&amp;amp;R studies for many systems, how to i export the results of the&amp;nbsp;Gauge R&amp;amp;R report into a data table.&lt;/P&gt;&lt;P&gt;Can a create a script to extract the Repeatability, Reproducibility ... data into a table?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:16:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/279451#M54170</guid>
      <dc:creator>Flavy</dc:creator>
      <dc:date>2023-06-10T23:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Gauge R&amp;R Report into a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/279480#M54172</link>
      <description>&lt;P&gt;Here is an example of extracting the data table you requested.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
dt=open("$SAMPLE_DATA/Variability Data/wafer.jmp");
vc = dt &amp;lt;&amp;lt; Variability Chart(
	Y( :Y ),
	X( :Operator, :Wafer ),
	Model( "Main Effect" ),
	Historical Sigma( 0 ),
	Name( "Gauge R&amp;amp;R" )(6, 0, 0, 0),
	Name( "Gauge R&amp;amp;R Report" )(1)
);

// Point at the report table you are interested in, and
// pass the message to it to create the data table from it
dtRR = report(vc)["Gauge R&amp;amp;R"][TableBox(1)] &amp;lt;&amp;lt; Make into Data Table;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Documentation on working with the output Display Trees is in the Scripting Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 13:19:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/279480#M54172</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-07-16T13:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Gauge R&amp;R Report into a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/279531#M54180</link>
      <description>&lt;P&gt;Thank you for the prompt response,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im trying to create a script to go through all columns in table 1 to generate GRR data and move them into a data table2 then generate graph XY Plot to mimic the customer graph below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data Table 1&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Flavy_0-1594909511606.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/25412iF01D5366DA6F6B72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Flavy_0-1594909511606.png" alt="Flavy_0-1594909511606.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Data Table2&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Flavy_2-1594909595293.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/25414i3E786D8B11C96037/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Flavy_2-1594909595293.png" alt="Flavy_2-1594909595293.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Final Graph&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Flavy_3-1594909810804.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/25415iB9398116766A9829/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Flavy_3-1594909810804.png" alt="Flavy_3-1594909810804.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right now im going step by step , i can generate the GRR , the new data tame but im stuck on how to get values from the report into the GRR table..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im a total noob trying to go through the scripting manual... but cant find a specific example... thanks&lt;/P&gt;
&lt;P&gt;/////////////////////////////////////////////////////////////////////////&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Variability Chart(
    Y( :CONT_VCC_mV ),
    X( :X_Y ),
    Model( "Main Effect" ),
    Historical Sigma( 0 ),
    Name( "Gauge R&amp;amp;R" )(6, 0, 0, 0),
    Name( "Gauge R&amp;amp;R Report" )(1),
    SendToReport( Dispatch( {}, "Gauge R&amp;amp;R", OutlineBox, {Set Title( "Gauge R&amp;amp;R" )} ) )
);

dt = New Table( "GRR_TABLE" );

dt &amp;lt;&amp;lt; New Column( "TEST_NAME" );
dt &amp;lt;&amp;lt; New Column( "Repeatability" );
dt &amp;lt;&amp;lt; New Column( "Reproducibility" );
dt &amp;lt;&amp;lt; New Column( "Guage R&amp;amp;R" );
dt &amp;lt;&amp;lt; New Column( "Part Variation" );
dt &amp;lt;&amp;lt; New Column( "Total Variation" );

dt &amp;lt;&amp;lt; Add Rows( 1 );


// Get test name
x = Column( "TEST_NAME" );
x[1] = "CONT_VCC_mV"; // How to get this from Chart...

//Get Repeatability&amp;nbsp;
Y = Column( "Repeatability&amp;nbsp;" );
x[2] = r[Outline Box( "Gauge R&amp;amp;R" ), Number Col Box( "Variation (6*StdDev)", 1 )] &amp;lt;&amp;lt; get( 1 );

//Get Reproducibility
//Get Guage R&amp;amp;R
//Get Part Variation
//Get Total Variation
// XY, Plot results&amp;nbsp;GRR_TABLE
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 17:37:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/279531#M54180</guid>
      <dc:creator>Flavy</dc:creator>
      <dc:date>2020-07-16T17:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Gauge R&amp;R Report into a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/279571#M54186</link>
      <description>&lt;P&gt;Here is an example of what I think is pretty close to what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Variability Data/wafer.jmp" );
// Add some new columns to allow for the sample data
// table to look somewhat like your table
For( i = 2, i &amp;lt;= 5, i++,
	dt &amp;lt;&amp;lt; New Column( "Y" || Char( i ), formula( Random Uniform( 80, 120 ) ) )
);

colList = dt &amp;lt;&amp;lt; get column names( string, continuous );

// Create a starter data table for placing all of the results in
dtFinal = New Table( "Final Results Table" );

// Loop across all of the columns and extract the required data 
For( i = 1, i &amp;lt;= N Items( colList ), i++,
	vc = dt &amp;lt;&amp;lt; Variability Chart(
		invisible,
		Y( Eval( colList[i] ) ),
		X( :Operator, :Wafer ),
		Model( "Main Effect" ),
		Historical Sigma( 0 ),
		Name( "Gauge R&amp;amp;R" )(6, 0, 0, 0),
		Name( "Gauge R&amp;amp;R Report" )(1)
	);

	// Point at the report table you are interested in, and
	// pass the message to it to create the data table from it
	dtRR = Report( vc )["Gauge R&amp;amp;R"][Table Box( 1 )] &amp;lt;&amp;lt; Make combined Data Table;

	dtFinal = dtFinal &amp;lt;&amp;lt; concatenate( dtRR, append to first table( 1 ) );

	Close( dtRR, nosave );
);

// Make the transposed data table
dtReport = dtFinal &amp;lt;&amp;lt; Split(
	Split By( :Measurement Source ),
	Split(
		:Name( "~AIAG abbrev" ),
		:Name( "Variation (6*StdDev)" ),
		:Name( "~AIAG Label" ),
		:Name( "which is 6*sqrt of" )
	),
	Group( :Y ),
	Sort by Column Property,
	Output Table("Guage R&amp;amp;R Report")
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, the Scripting Guide is not a real good examples book, from the stand point of, "Here is how you do X".&amp;nbsp; It is a document targeted to teach the language.&amp;nbsp; So I suggest that you spend a bit more time with it and you will learn how to use it's components to generate your scripts.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 15:26:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/279571#M54186</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-07-16T15:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Gauge R&amp;R Report into a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/279608#M54195</link>
      <description>Thankyou so much! i ran in to the problem where&lt;BR /&gt;Report( variability chart[1] )["GaugeR&amp;amp;R"][Table Box( 1 )] &amp;lt;&amp;lt; make combined data table would only save the first column , i see now how its supposed to be done</description>
      <pubDate>Thu, 16 Jul 2020 19:05:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/279608#M54195</guid>
      <dc:creator>Flavy</dc:creator>
      <dc:date>2020-07-16T19:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Gauge R&amp;R Report into a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/611862#M81217</link>
      <description>&lt;P&gt;This example is very helpful as a starting point for a scripting solution, but doesn't explain the arguments that are passed on the line below.&amp;nbsp; (6,0,0,0), effects the analysis output as well as the calculated values, but I am not able to find where these arguments are defined or described.&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;Name( "Gauge R&amp;amp;R" )(6, 0, 0, 0),&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It appears that the second argument effects the % of Tolerance being included in the Report (0= this column not included, 1=this column is included).&amp;nbsp; Where can I read up on these setting values and what they effect?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 16:23:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/611862#M81217</guid>
      <dc:creator>DSchweitzer</dc:creator>
      <dc:date>2023-03-14T16:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Gauge R&amp;R Report into a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/611903#M81220</link>
      <description>&lt;P&gt;I cannot find any documentation about these Variability Chart() arguments. I entered a bug for this omission.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 17:22:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/611903#M81220</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-03-14T17:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Gauge R&amp;R Report into a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/612420#M81252</link>
      <description>&lt;P&gt;This is legacy code. In Version 17 and above, this has been replaced with&amp;nbsp;Edit MSA Metadata.&lt;/P&gt;
&lt;P&gt;If you look in a version of JMP prior to 17, you will find the following information in the Scripting Index:&lt;/P&gt;
&lt;P&gt;obj&amp;lt;&amp;lt; "Gauge R&amp;amp;R"n( K Sigma, Tolerance, LSL, USL )&lt;/P&gt;
&lt;P&gt;Computes and displays a gauge R&amp;amp;R (reproducibility and repeatability) summary report.&amp;nbsp; Specify either the tolerance or the specification limits.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 12:45:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/612420#M81252</guid>
      <dc:creator>tonya_mauldin</dc:creator>
      <dc:date>2023-03-15T12:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Gauge R&amp;R Report into a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/613794#M81386</link>
      <description>&lt;P&gt;Thank you. I confirmed the Metadata ordering also. I looked in the V17 scripting guide (pdf and help) and didn't find the snippet you referenced. Either way, I am now able to pull in the Spec Limits from meta data which were previously loaded (PS: I only import LSL and USL) and the method works perfectly. A nice consolidated&amp;nbsp; table of gage data. I just need to add a sort R&amp;amp;R high to low and done. Really appreciate the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;colList = dt &amp;lt;&amp;lt; get column names;

// Create a starter data table for placing all of the results in
dtFinal = New Table( "Final Results Table" );

Current Data Table( dt ); 
Limits={};
ncols = N Items(colList);
For( i = 3, i &amp;lt;=ncols, i++,
		Limits=:Column(colList[i])&amp;lt;&amp;lt;Get Property("Spec Limits");
		show(Column(colList[i]));

		vc = dt &amp;lt;&amp;lt; Variability Chart(
			invisible,
			Y( Column(colList[i])),
			X( :Appraiser, :UUT ),
			Model( "Crossed" ),
//							   (sigma, TolRange,   LSL,         USL )
		    Name( "Gauge R&amp;amp;R" )(6,       0,      Limits[1],   Limits[2]),
		    Name( "Gauge R&amp;amp;R Report" )(1)
		);
		
		dtRR = Report( vc )["Gauge R&amp;amp;R"][Table Box( 1 )] &amp;lt;&amp;lt; Make combined Data Table;
		dtFinal = dtFinal &amp;lt;&amp;lt; concatenate( dtRR, append to first table( 1 ) );
		Close( dtRR, nosave );
		vc &amp;lt;&amp;lt; close window;
		Current Data Table( dt ); 
);&lt;BR /&gt;&lt;BR /&gt;dtReport = dtFinal &amp;lt;&amp;lt; Split(&lt;BR /&gt;Split By( :"~AIAG abbrev"n ),&lt;BR /&gt;Split( :"% of Tolerance"n ),&lt;BR /&gt;Group( :Y ),&lt;BR /&gt;Output Table( "Gauge R&amp;amp;R Report" ),&lt;BR /&gt;Remaining Columns( Drop All ),&lt;BR /&gt;Sort by Column Property&lt;BR /&gt;);&lt;BR /&gt;Close( dtFinal, nosave );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Mar 2023 20:55:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Gauge-R-amp-R-Report-into-a-data-table/m-p/613794#M81386</guid>
      <dc:creator>DSchweitzer</dc:creator>
      <dc:date>2023-03-17T20:55:59Z</dc:date>
    </item>
  </channel>
</rss>

