<?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: Repeat by variable in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Repeat-by-variable/m-p/203323#M2118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works like a charm, thanks Rick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2015 15:26:41 GMT</pubDate>
    <dc:creator>KPatra</dc:creator>
    <dc:date>2015-03-17T15:26:41Z</dc:date>
    <item>
      <title>Repeat by variable</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Repeat-by-variable/m-p/203319#M2114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two matrices H and K&lt;/P&gt;&lt;P&gt;H = 1 2 3&lt;/P&gt;&lt;P&gt;K = 10 20&lt;/P&gt;&lt;P&gt;I woulde like to repeat K for each value of H - any suggestions? The expected result will look like&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 14:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Repeat-by-variable/m-p/203319#M2114</guid>
      <dc:creator>KPatra</dc:creator>
      <dc:date>2015-03-17T14:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat by variable</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Repeat-by-variable/m-p/203320#M2115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the &lt;A href="http://support.sas.com/documentation/cdl/en/imlug/66845/HTML/default/viewer.htm#imlug_langref_sect124.htm"&gt;EXPANDGRID function&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 14:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Repeat-by-variable/m-p/203320#M2115</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-03-17T14:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat by variable</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Repeat-by-variable/m-p/203321#M2116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rick, I have IML 12.1 and it does not have that function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 14:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Repeat-by-variable/m-p/203321#M2116</guid>
      <dc:creator>KPatra</dc:creator>
      <dc:date>2015-03-17T14:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat by variable</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Repeat-by-variable/m-p/203322#M2117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a 2D grid, use this module, which is adapted from the article &lt;A href="http://blogs.sas.com/content/iml/2011/01/21/how-to-create-a-grid-of-values/"&gt;"How to create a grid of values"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start ExpandGrid(_x1, _x2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; x1 = colvec(_x1);&amp;nbsp; Nx = nrow(x1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; x2 = rowvec(_x2);&amp;nbsp; Ny = ncol(x2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; X = repeat(x1, 1, Ny);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Y = repeat(x2, Nx);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; return ( colvec(X) || colvec(Y) );&lt;/P&gt;&lt;P&gt;finish;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 14:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Repeat-by-variable/m-p/203322#M2117</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-03-17T14:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat by variable</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Repeat-by-variable/m-p/203323#M2118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works like a charm, thanks Rick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 15:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Repeat-by-variable/m-p/203323#M2118</guid>
      <dc:creator>KPatra</dc:creator>
      <dc:date>2015-03-17T15:26:41Z</dc:date>
    </item>
  </channel>
</rss>

