<?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 How to delete the column &amp;amp; row and choose specific row name as a new column? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480167#M72456</link>
    <description>&lt;P&gt;Hello, my name is Jamal. I'm from Malaysia, and i really don't have knowledge about scripting JSL. So my project is, every table that i open from data Wafer, it comes with unwanted row &amp;amp; column. So my objective is, the data will only work if the name row Parameter and other be a new column. Also i must delete some specific row that i did not use. So my question to someone expert scripting. Can you write down, the program that if i choose any data table it automatically delete the other row inside red marker and make a row Parameter as a new column?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P/s not every data table have a same row parameter (44)&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:47:19 GMT</pubDate>
    <dc:creator>mystylelife19</dc:creator>
    <dc:date>2023-06-10T23:47:19Z</dc:date>
    <item>
      <title>How to delete the column &amp; row and choose specific row name as a new column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480167#M72456</link>
      <description>&lt;P&gt;Hello, my name is Jamal. I'm from Malaysia, and i really don't have knowledge about scripting JSL. So my project is, every table that i open from data Wafer, it comes with unwanted row &amp;amp; column. So my objective is, the data will only work if the name row Parameter and other be a new column. Also i must delete some specific row that i did not use. So my question to someone expert scripting. Can you write down, the program that if i choose any data table it automatically delete the other row inside red marker and make a row Parameter as a new column?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P/s not every data table have a same row parameter (44)&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:47:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480167#M72456</guid>
      <dc:creator>mystylelife19</dc:creator>
      <dc:date>2023-06-10T23:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the column &amp; row and choose specific row name as a new column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480186#M72457</link>
      <description>&lt;P&gt;Sorry forgot to put the data table from Wafer&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 08:10:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480186#M72457</guid>
      <dc:creator>mystylelife19</dc:creator>
      <dc:date>2022-04-19T08:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the column &amp; row and choose specific row name as a new column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480189#M72459</link>
      <description>&lt;P&gt;This might do the trick:&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 = Current Data Table();
loc = Contains( Column( dt, 1 ) &amp;lt;&amp;lt; Get Values, "Parameter" );
dt &amp;lt;&amp;lt; Select Rows( 1::loc - 1 ) &amp;lt;&amp;lt; Delete Rows;
loc = Contains( Column( dt, 1 ) &amp;lt;&amp;lt; Get Values, "PID-1" );
dt &amp;lt;&amp;lt; Select Rows( 2::loc - 1 ) &amp;lt;&amp;lt; Delete Rows;

For( i = 1, i &amp;lt;= N Col( dt ), i++,
	Column( dt, i ) &amp;lt;&amp;lt; Set Name( Column( dt, i )[1] )
);

dt &amp;lt;&amp;lt; Select Rows( [1] ) &amp;lt;&amp;lt; Delete Rows&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Apr 2022 09:55:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480189#M72459</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2022-04-19T09:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the column &amp; row and choose specific row name as a new column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480197#M72464</link>
      <description>&lt;P&gt;Here is the way that I would approach the issue.&amp;nbsp; Open the csv file in JMP and then run this below script.&amp;nbsp; It will load the global data into table variables, change the column names, and then convert the test columns into numeric etc.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

// Add Global info as table variables
theRow = 1;
While( Column( dt, 1 )[theRow] != "Parameter",
	If( Column( dt, 2 )[theRow] != "",
		dt &amp;lt;&amp;lt; new table variable( Column( dt, 1 )[theRow],
			Column( dt, 2 )[theRow]
		)
	);
	theRow++;
);

// Get rid of unwanted rows
dt &amp;lt;&amp;lt; select where( As Column( dt, 3 ) == "" &amp;amp; As Column( dt, 4 ) == "" );
dt &amp;lt;&amp;lt; delete rows;

// Rename columns
theRow = (dt &amp;lt;&amp;lt; get rows where( As Column( dt, 1 ) == "Parameter" ))[1];
For( i = 1, i &amp;lt;= N Cols( dt ), i++,
	If( Column( dt, i )[theRow] != "",
		Column( dt, i ) &amp;lt;&amp;lt; set name( Column( dt, i )[theRow] )
	)
);
dt &amp;lt;&amp;lt; delete rows(theRow);

// Attempt to set meta data for columns
// List of know columns
metaList = {
	"SBIN", "numeric", "ordinal",
	"HBIN", "numeric", "ordinal",
	"DIE_X", "numeric", "ordinal",
	"DIE_Y", "numeric", "ordinal",
	"SITE", "numeric", "ordinal",
	"TOTAL_TESTS", "numeric", "continuous",
	"X", "numeric", "ordinal",
	"Y", "numeric", "ordinal",
	"SITE_NO", "numeric", "ordinal",
	"PassFail", "numeric", "ordinal",
	"TimeStamp", "numeric", "timestamp",
	"PartSN", "character", "nominal"	
};
// Process metaList into separate lists for easier processing
colList = {};
typeList = {};
modelList = {};
For( i = 1, i &amp;lt;= N Items( metaList ), i++,
	If(
		Mod( i, 3 ) == 1, Insert Into( colList, metaList[i] ),
		Mod( i, 3 ) == 2, Insert Into( typeList, metaList[i] ),
		Insert Into( modelList, metaList[i] )
	)
);
For( i = 1, i &amp;lt;= N Cols( dt ), i++,
	foundName = Contains( colList, Column( dt, i ) &amp;lt;&amp;lt; get name );
	If(
		foundName,
			If(
				Contains( {"ordinal", "nominal", "continuous"}, modelList[foundName] ),
					Column( dt, i ) &amp;lt;&amp;lt; dataType( typeList[foundName] ) &amp;lt;&amp;lt; modelingtype( modelList[foundName] ),
				modelList[foundName] == "timestamp",
					For( k = 1, k &amp;lt;= N Rows( dt ), k++,
						Column( dt, i )[k] = Word( 1, Char( Column( dt, i )[k] ), "_ " ) || "/" || Word( 2, Char( Column( dt, i )[k] ), "_ " ) || "/"
						 || Word( 3, Char( Column( dt, i )[k] ), "_ " ) || " " || Word( 2, Char( Column( dt, i )[k] ), " " )
					);
					Column( dt, i ) &amp;lt;&amp;lt; datatype( numeric ) &amp;lt;&amp;lt; modelingtype( continuous ) &amp;lt;&amp;lt; set informat( "y/m/d h:m:s" ) &amp;lt;&amp;lt;
					Format( "y/m/d h:m:s", 18, 0 );,

			),
		Is Missing( Num( Column( dt, i )[1] ) ) == 0,
			Column( dt, i ) &amp;lt;&amp;lt; datatype( numeric ) &amp;lt;&amp;lt; modelingtype( continuous );
		
	);
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Apr 2022 12:16:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480197#M72464</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-04-19T12:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the column &amp; row and choose specific row name as a new column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480423#M72485</link>
      <description>&lt;P&gt;Oh my god. Thankyou so much sir.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can i ask for little help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the result of data table must be in Bivariate not in Mosaic. I already copy &amp;amp; paste your coding before my coding action Distribution. But it appears in Mosaic result. So can you refer to my coding and fix it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer to the picture i just upload&lt;/P&gt;&lt;P&gt;- If i run the scripting it appears the site no 1 &amp;amp; site no 2 separate each other. how to combine the site no 1 &amp;amp; site no 2 like in 1 windows?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;User_Input = New Window( "JMP AUTOMATION", &amp;lt;&amp;lt; modal(),
	hlistbox(
		Text Box( "Enter Wafer ID:" ),
		ID_Wafer = Text Edit Box( "", &amp;lt;&amp;lt;set width( 200 ) ),
	),
	Button Box( "OK", 
		ID_Wafer = ID_Wafer &amp;lt;&amp;lt; get text();
	),
);

//this below should put your coding sir



Distribution(
	Continuous Distribution(
		Column( :IL_ALL_MAG_C1_S21 ),
		Normal Quantile Plot( 1 )
	),
	SendToReport(
		Dispatch(
			{"IL_ALL_MAG_C1_S21"},
			"",
			Picture Box( 5 ),
			{Set Summary Behavior( "Collapse" )}
		),
		Dispatch(
			{"IL_ALL_MAG_C1_S21"},
			"Distrib Quantile Plot",
			FrameBox,
			{Row Legend(
				IL_ALL_MAG_C1_S21,
				Color( 1 ),
				Color Theme( "Blue to Gray to Red" ),
				Marker( 0 ),
				Marker Theme( "" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
);

Bivariate( Y( :Y ), X( :X ), Where( :WAFER_ID == "ID_Wafer" &amp;amp; :SITE_NO == 1 ) );

Bivariate( Y( :Y ), X( :X ), Where( :WAFER_ID == "ID_Wafer" &amp;amp; :SITE_NO == 2 ) );
//for ID_Wafer how to put the data that we type on Text Edit Box and shows as WAFER_ID?&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Apr 2022 18:41:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480423#M72485</guid>
      <dc:creator>mystylelife19</dc:creator>
      <dc:date>2022-04-19T18:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the column &amp; row and choose specific row name as a new column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480444#M72487</link>
      <description>&lt;P&gt;Change your Bivariate JSL to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Bivariate( Y( :Y ), X( :X ), Where( :WAFER_ID == ID_Wafer &amp;amp; :SITE_NO == 1 ) );

Bivariate( Y( :Y ), X( :X ), Where( :WAFER_ID == ID_Wafer &amp;amp; :SITE_NO == 2 ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also,&lt;/P&gt;
&lt;P&gt;Please don't jusr cut/paste and use the JSL I provided.&amp;nbsp; Please go through it and learn it.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 19:29:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480444#M72487</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-04-19T19:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the column &amp; row and choose specific row name as a new column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480495#M72490</link>
      <description>&lt;P&gt;Okay sir, many thanks to you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i try okey :))&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 00:56:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-the-column-amp-row-and-choose-specific-row-name-as/m-p/480495#M72490</guid>
      <dc:creator>mystylelife19</dc:creator>
      <dc:date>2022-04-20T00:56:37Z</dc:date>
    </item>
  </channel>
</rss>

