<?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 cell to different column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/copy-column-cell-to-different-column/m-p/52054#M29538</link>
    <description>&lt;P&gt;Here is the code that I would use....others may have better&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

selRows = dt &amp;lt;&amp;lt; Get Rows Where( :gender == "M" );
For( i = 1, i &amp;lt;= N Rows( selRows ), i++,
	:gender[selRows[i]] = Char( :age[selRows[i]] )
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 26 Feb 2018 11:45:53 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-02-26T11:45:53Z</dc:date>
    <item>
      <title>copy column cell to different column</title>
      <link>https://community.jmp.com/t5/Discussions/copy-column-cell-to-different-column/m-p/52053#M29537</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to copy all row that is gender "male" from column "age" to column "gender"&lt;/P&gt;&lt;P&gt;this syntax doesn't work.&lt;/P&gt;&lt;P&gt;appreciate any help!&lt;/P&gt;&lt;P&gt;age is a character&amp;nbsp;column (Young, adult etc.)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt;Select Where(:gender== "M");
:age &amp;lt;&amp;lt; Get Value;
:gender &amp;lt;&amp;lt; paste;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Feb 2018 11:13:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/copy-column-cell-to-different-column/m-p/52053#M29537</guid>
      <dc:creator>AdamChoen</dc:creator>
      <dc:date>2018-02-26T11:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: copy column cell to different column</title>
      <link>https://community.jmp.com/t5/Discussions/copy-column-cell-to-different-column/m-p/52054#M29538</link>
      <description>&lt;P&gt;Here is the code that I would use....others may have better&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

selRows = dt &amp;lt;&amp;lt; Get Rows Where( :gender == "M" );
For( i = 1, i &amp;lt;= N Rows( selRows ), i++,
	:gender[selRows[i]] = Char( :age[selRows[i]] )
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Feb 2018 11:45:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/copy-column-cell-to-different-column/m-p/52054#M29538</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-02-26T11:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: copy column cell to different column</title>
      <link>https://community.jmp.com/t5/Discussions/copy-column-cell-to-different-column/m-p/52055#M29539</link>
      <description>&lt;P&gt;working great thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 12:41:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/copy-column-cell-to-different-column/m-p/52055#M29539</guid>
      <dc:creator>AdamChoen</dc:creator>
      <dc:date>2018-02-26T12:41:59Z</dc:date>
    </item>
  </channel>
</rss>

