<?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 Table Summary Script Without Hardcoding Table Names in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781122#M96359</link>
    <description>&lt;P&gt;I have a project that I will be adding tables to. I am trying to make a script that produces a summary with some basic stats.&lt;/P&gt;&lt;P&gt;In the following script, MyDataTable is hard coded, looking for help to replace that with something that calls up the table's name.&lt;/P&gt;&lt;P&gt;This my first post here, I also spent a couple of hours trying to figure it out with forum and google searches.&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Summary of MyDataTable grouped by Name",
	Add Rows( 6 ),
	New Script(
		"Source",
		Data Table( "MyDataTable" ) &amp;lt;&amp;lt;
		Summary(
			Group( :Name ),
			Mean( :Resp. ),
			Std Dev( :Resp. ),
			Std Err( :Resp. ),
			N( :Resp. ),
			Freq( "None" ),
			Weight( "None" ),
			output table name( "Summary of MyDataTable grouped by Name" )
		)
	),
	New Column( "Name",
		Character( 20 ),
		"Nominal",
		Lock( 1 ),
		Set Display Width( 83 )
	),
	New Column( "N Rows",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 12, 0 ),
		Lock( 1 ),
		Set Display Width( 42 )
	),
	New Column( "Mean(Resp.)",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 12, 0 ),
		Set Selected,
		Lock( 1 ),
		Set Display Width( 70 )
	),
	New Column( "Std Dev(Resp.)",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 12, 0 ),
		Set Selected,
		Lock( 1 ),
		Set Display Width( 83 )
	),
	New Column( "Std Err(Resp.)",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 12, 0 ),
		Set Selected,
		Lock( 1 ),
		Set Display Width( 77 )
	),
	New Column( "N(Resp.)",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Lock( 1 ),
		Set Display Width( 48 )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 12 Aug 2024 18:35:56 GMT</pubDate>
    <dc:creator>Rich</dc:creator>
    <dc:date>2024-08-12T18:35:56Z</dc:date>
    <item>
      <title>Table Summary Script Without Hardcoding Table Names</title>
      <link>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781122#M96359</link>
      <description>&lt;P&gt;I have a project that I will be adding tables to. I am trying to make a script that produces a summary with some basic stats.&lt;/P&gt;&lt;P&gt;In the following script, MyDataTable is hard coded, looking for help to replace that with something that calls up the table's name.&lt;/P&gt;&lt;P&gt;This my first post here, I also spent a couple of hours trying to figure it out with forum and google searches.&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Summary of MyDataTable grouped by Name",
	Add Rows( 6 ),
	New Script(
		"Source",
		Data Table( "MyDataTable" ) &amp;lt;&amp;lt;
		Summary(
			Group( :Name ),
			Mean( :Resp. ),
			Std Dev( :Resp. ),
			Std Err( :Resp. ),
			N( :Resp. ),
			Freq( "None" ),
			Weight( "None" ),
			output table name( "Summary of MyDataTable grouped by Name" )
		)
	),
	New Column( "Name",
		Character( 20 ),
		"Nominal",
		Lock( 1 ),
		Set Display Width( 83 )
	),
	New Column( "N Rows",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 12, 0 ),
		Lock( 1 ),
		Set Display Width( 42 )
	),
	New Column( "Mean(Resp.)",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 12, 0 ),
		Set Selected,
		Lock( 1 ),
		Set Display Width( 70 )
	),
	New Column( "Std Dev(Resp.)",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 12, 0 ),
		Set Selected,
		Lock( 1 ),
		Set Display Width( 83 )
	),
	New Column( "Std Err(Resp.)",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 12, 0 ),
		Set Selected,
		Lock( 1 ),
		Set Display Width( 77 )
	),
	New Column( "N(Resp.)",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Lock( 1 ),
		Set Display Width( 48 )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Aug 2024 18:35:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781122#M96359</guid>
      <dc:creator>Rich</dc:creator>
      <dc:date>2024-08-12T18:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Table Summary Script Without Hardcoding Table Names</title>
      <link>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781143#M96361</link>
      <description>&lt;P&gt;Where is the "MyDataTable" coming from? How do you define which table should be used when? Are you saving this script to some other data table than MyDataTable?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 18:44:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781143#M96361</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-12T18:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Table Summary Script Without Hardcoding Table Names</title>
      <link>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781154#M96363</link>
      <description>&lt;P&gt;I am using the JMP add-in in Excel to create the data table. MyDataTable is the name of the table from Excel. So my thought was when I add more data tables to my project, I can run the script to generate my summary table(s). Maybe there is an easier/cleaner way? I did try selecting multiple tables then generate the summary (Table&amp;gt;Summary dropdown), but it only generated the summary for one table. SO maybe I am missing a step there?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 18:55:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781154#M96363</guid>
      <dc:creator>Rich</dc:creator>
      <dc:date>2024-08-12T18:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Table Summary Script Without Hardcoding Table Names</title>
      <link>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781156#M96365</link>
      <description>&lt;P&gt;If all the tables have same column names, you could have a simple script in the project which would create a summary of the current data table which you run as needed. Other option could be to loop over the tables in your project and creating summaries which are still missing but this does require quite a bit of extra scripting. You might also be able to load the data directly to JMP without using the add-in and create the summary immediately after the data is loaded.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 19:10:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781156#M96365</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-12T19:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table Summary Script Without Hardcoding Table Names</title>
      <link>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781157#M96366</link>
      <description>&lt;P&gt;In the above case, it is just the part&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Summary(
	Group( :Name ),
	Mean( :Resp. ),
	Std Dev( :Resp. ),
	Std Err( :Resp. ),
	N( :Resp. )
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Just import the column from Excel and execute the code.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 19:30:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781157#M96366</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-12T19:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Table Summary Script Without Hardcoding Table Names</title>
      <link>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781161#M96369</link>
      <description>&lt;P&gt;Thanks jthi and hogi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to figure out where to save the script in the project instead of associated with a table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 19:50:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781161#M96369</guid>
      <dc:creator>Rich</dc:creator>
      <dc:date>2024-08-12T19:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Table Summary Script Without Hardcoding Table Names</title>
      <link>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781162#M96370</link>
      <description>&lt;P&gt;You might have a look at:&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Workflow Builder or the &amp;amp;quot;baby steps&amp;amp;quot; into Scripting" uid="699152" url="https://community.jmp.com/t5/Benelux-JMP-Users-Group/Workflow-Builder-or-the-quot-baby-steps-quot-into-Scripting/m-p/699152#U699152" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Depending on the total length of your workflow, it might be suitable to store the workflow for the data import and the processing&amp;nbsp; separate from a project or from the actual data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;If all the tables have same column names, you could have a simple script&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;... if the column names vary, it gets a bit more complicated ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 20:10:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781162#M96370</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-12T20:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Table Summary Script Without Hardcoding Table Names</title>
      <link>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781175#M96371</link>
      <description>&lt;P&gt;I will give this a look tomorrow!!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 20:48:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781175#M96371</guid>
      <dc:creator>Rich</dc:creator>
      <dc:date>2024-08-12T20:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Table Summary Script Without Hardcoding Table Names</title>
      <link>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781366#M96409</link>
      <description>&lt;P&gt;Thank you both. Very helpful!!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 18:03:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Table-Summary-Script-Without-Hardcoding-Table-Names/m-p/781366#M96409</guid>
      <dc:creator>Rich</dc:creator>
      <dc:date>2024-08-13T18:03:35Z</dc:date>
    </item>
  </channel>
</rss>

