<?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 center columns in Tabulate? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-center-columns-in-Tabulate/m-p/549860#M76622</link>
    <description>&lt;P&gt;Hello All!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a fairly new user and would love to know if we can center the columns when we are using the "Tabulate" function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;- highlighting/right clicking&lt;/P&gt;&lt;P&gt;- adjusting the properties to "center"&lt;/P&gt;&lt;P&gt;- looking at the format settings&lt;/P&gt;&lt;P&gt;- input "center" into the "Set Format( Uniform Format ( 10, 1 ) )" and adding ",center"&lt;/P&gt;&lt;P&gt;- looking at my overall JMP preferences--&amp;gt;Tables&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:54:45 GMT</pubDate>
    <dc:creator>Maerawlings</dc:creator>
    <dc:date>2023-06-10T23:54:45Z</dc:date>
    <item>
      <title>How to center columns in Tabulate?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-center-columns-in-Tabulate/m-p/549860#M76622</link>
      <description>&lt;P&gt;Hello All!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a fairly new user and would love to know if we can center the columns when we are using the "Tabulate" function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;- highlighting/right clicking&lt;/P&gt;&lt;P&gt;- adjusting the properties to "center"&lt;/P&gt;&lt;P&gt;- looking at the format settings&lt;/P&gt;&lt;P&gt;- input "center" into the "Set Format( Uniform Format ( 10, 1 ) )" and adding ",center"&lt;/P&gt;&lt;P&gt;- looking at my overall JMP preferences--&amp;gt;Tables&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:54:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-center-columns-in-Tabulate/m-p/549860#M76622</guid>
      <dc:creator>Maerawlings</dc:creator>
      <dc:date>2023-06-10T23:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to center columns in Tabulate?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-center-columns-in-Tabulate/m-p/549887#M76623</link>
      <description>&lt;P&gt;Welcome to the Discussion Community.&lt;/P&gt;
&lt;P&gt;I am not a Super User of Tabulate, so I may not be totally correct in my answer.&amp;nbsp; I checked through all of the messages available to Tabulate (See Scripting Index) and couldn't find anything that would allow the changing of the alignment for the Tabulate cells.&lt;/P&gt;
&lt;P&gt;I suggest that you add your ideas to the JMP Wish List&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 18:06:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-center-columns-in-Tabulate/m-p/549887#M76623</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-09-27T18:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to center columns in Tabulate?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-center-columns-in-Tabulate/m-p/549930#M76626</link>
      <description>&lt;P&gt;So I have found a kluge of a work-around.&amp;nbsp; Table Boxes, and their StringColBox() columns do allow justification.&amp;nbsp; Below is a sample sccript that shows the concept.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1664314198471.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45862i3A8FF99D15C948C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1664314198471.png" alt="txnelson_0-1664314198471.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=// Open Data Table: big class.jmp
// → Data Table( "big class" )
Open( "$SAMPLE_DATA/big class.jmp" );

// Create the Tabulate Table, and save it as a data table
(tab = dt &amp;lt;&amp;lt; Tabulate(
	Change Item Label( Statistics( Mean, "height" ) ),
	Show Control Panel( 0 ),
	Add Table(
		Column Table( Statistics( Mean ), Analysis Columns( :height ) ),
		Row Table( Grouping Columns( :age ) )
	)
) )&amp;lt;&amp;lt; Make Into Data Table;

// Close the 
thetable =  current data table();
tab &amp;lt;&amp;lt; close window;

// Only character fields can be justified, so change the 2 numeric columns to character
thetable:age &amp;lt;&amp;lt; data type(character);
thetable:"height(height)"n &amp;lt;&amp;lt; data type(character);

// Move the table to a journal, and close the table
thetable&amp;lt;&amp;lt;journal;
close(thetable, nosave);

// Center the fields
jr=current journal();
jr[StringColBox(1)]&amp;lt;&amp;lt;set justify("center");
jr[StringColBox(2)]&amp;lt;&amp;lt;set justify("center");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 21:30:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-center-columns-in-Tabulate/m-p/549930#M76626</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-09-27T21:30:31Z</dc:date>
    </item>
  </channel>
</rss>

