<?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 JSL: How to set a single row across multiple columns to a single value? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-How-to-set-a-single-row-across-multiple-columns-to-a-single/m-p/879194#M104246</link>
    <description>&lt;P&gt;Hello JSL specialist,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Wondering if there is an elegant (simple) way to set a single row across all columns to a single value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I know I can do a For loop, and the For Each Row isn't quite what I'm after either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I'm almost looking for an analogous command, like For Each Column or something like that. Perhaps there doesn't exist a command that can set a single row across all columns to a given value, but I'm hoping to find a more elegant way of doing this than brute force with a For loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!,&lt;/P&gt;
&lt;P&gt;DS&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jun 2025 16:42:02 GMT</pubDate>
    <dc:creator>SDF1</dc:creator>
    <dc:date>2025-06-10T16:42:02Z</dc:date>
    <item>
      <title>JSL: How to set a single row across multiple columns to a single value?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-set-a-single-row-across-multiple-columns-to-a-single/m-p/879194#M104246</link>
      <description>&lt;P&gt;Hello JSL specialist,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Wondering if there is an elegant (simple) way to set a single row across all columns to a single value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I know I can do a For loop, and the For Each Row isn't quite what I'm after either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I'm almost looking for an analogous command, like For Each Column or something like that. Perhaps there doesn't exist a command that can set a single row across all columns to a given value, but I'm hoping to find a more elegant way of doing this than brute force with a For loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!,&lt;/P&gt;
&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 16:42:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-set-a-single-row-across-multiple-columns-to-a-single/m-p/879194#M104246</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2025-06-10T16:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to set a single row across multiple columns to a single value?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-set-a-single-row-across-multiple-columns-to-a-single/m-p/879204#M104247</link>
      <description>&lt;P&gt;I found the answer I was looking for thanks to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;' post here:&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Uncharted/Data-table-subscripting/ba-p/21013" target="_blank"&gt;https://community.jmp.com/t5/Uncharted/Data-table-subscripting/ba-p/21013&lt;/A&gt;&amp;nbsp;about table subscripting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is an elegant way:&amp;nbsp; dt[row, column]=x;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want all of row 1 to be a value, you use: dt[1,0] = x. Similarly for a column and so forth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is exactly the elegant way I was looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this can help some others as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 16:55:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-set-a-single-row-across-multiple-columns-to-a-single/m-p/879204#M104247</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2025-06-10T16:55:20Z</dc:date>
    </item>
  </channel>
</rss>

