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.
In the following script, MyDataTable is hard coded, looking for help to replace that with something that calls up the table's name.
This my first post here, I also spent a couple of hours trying to figure it out with forum and google searches.
Thanks!!
New Table( "Summary of MyDataTable grouped by Name",
Add Rows( 6 ),
New Script(
"Source",
Data Table( "MyDataTable" ) <<
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 )
)
);