<?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: Copy column values to nearest integer in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Copy-column-values-to-nearest-integer/m-p/46248#M26350</link>
    <description>&lt;P&gt;If your factor levels are widely spread apart, you could always just format the display of the columns to 'Fixed Decimal' with zero decimals places to show. It doesn't change the values, but it provides a table to print. Otherwise you can use the Round() or Floor() functions in two newly created columns as previous poster suggested.&lt;/P&gt;</description>
    <pubDate>Sun, 22 Oct 2017 14:55:51 GMT</pubDate>
    <dc:creator>volinoca</dc:creator>
    <dc:date>2017-10-22T14:55:51Z</dc:date>
    <item>
      <title>Copy column values to nearest integer</title>
      <link>https://community.jmp.com/t5/Discussions/Copy-column-values-to-nearest-integer/m-p/46241#M26346</link>
      <description>&lt;P&gt;Hi JMP community,&lt;/P&gt;&lt;P&gt;I have the following dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table.jpg" style="width: 547px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8094i25903B5C7236C88E/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.jpg" alt="table.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and I want to copy, from inside the table environment column X2 and X3 values to two new columns but rounded up to the nearest integer.&lt;/P&gt;&lt;P&gt;So first rows would give lets say:&lt;/P&gt;&lt;P&gt;9&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;7&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;15&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;P&gt;I know that you can do this easily just by copy paste the values in excel and include a function there but I dont want to include a third party tool, I am pretty sure I can do it easily inside JMP somehow.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2017 14:09:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Copy-column-values-to-nearest-integer/m-p/46241#M26346</guid>
      <dc:creator>KostasV</dc:creator>
      <dc:date>2017-10-22T14:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Copy column values to nearest integer</title>
      <link>https://community.jmp.com/t5/Discussions/Copy-column-values-to-nearest-integer/m-p/46246#M26348</link>
      <description>&lt;P&gt;Simply create a new column and specify the following formula&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Round(:X2, 0 )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Example",
	Add Rows( 40 ),
	New Column( "X2",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Selected,
		Set Values(
			[0.222296780906617, -0.208880377933383, 0.948435816913843,
			-0.223318483680487, 0.348921137861907, 0.661695904098451,
			-0.79871425870806, -0.2668949784711, 0.8907325360924, 0.841785247903317,
			-0.707082123029977, 0.0489646322093902, -0.795245121698827,
			-0.274563614744693, -0.0984594593755902, 0.0850535412319002,
			-0.289936773944646, 0.37708281353116, 0.376254497095942,
			-0.378620598930866, -0.796597009990364, 0.834386725910008,
			0.971540253143757, -0.848479581996799, 0.913042881526053,
			0.795696284156292, -0.0982480780221523, -0.537943015806377,
			-0.179191492497921, 0.96037309942767, -0.853838890325278,
			0.451878123916685, -0.742894380353391, 0.886242488399148,
			0.291709554381668, 0.818332622293383, -0.657034539617598,
			-0.327543308958411, -0.430723237805069, 0.415282697882503]
		)
	),
	New Column( "Column 7",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( Round( :X2, 0 ) )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="round.PNG" style="width: 468px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8097i9A5FA4869FBA76B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="round.PNG" alt="round.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2017 14:44:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Copy-column-values-to-nearest-integer/m-p/46246#M26348</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-10-22T14:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Copy column values to nearest integer</title>
      <link>https://community.jmp.com/t5/Discussions/Copy-column-values-to-nearest-integer/m-p/46248#M26350</link>
      <description>&lt;P&gt;If your factor levels are widely spread apart, you could always just format the display of the columns to 'Fixed Decimal' with zero decimals places to show. It doesn't change the values, but it provides a table to print. Otherwise you can use the Round() or Floor() functions in two newly created columns as previous poster suggested.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2017 14:55:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Copy-column-values-to-nearest-integer/m-p/46248#M26350</guid>
      <dc:creator>volinoca</dc:creator>
      <dc:date>2017-10-22T14:55:51Z</dc:date>
    </item>
  </channel>
</rss>

