<?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: Naming the matrix same name as the dataset table in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Naming-the-matrix-same-name-as-the-dataset-table/m-p/130593#M1021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no conflict, so you can do whichever you prefer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, it varies. If there is a correlation matrix in a data set named CORR, I might read it into a matrix of the same name.&lt;/P&gt;&lt;P&gt;If the data set is named MyCorrelationMatrix, I'll probably just read it into S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most real data sets have both character and numeric variables, so you can't read all variables into a single matrix. For example: the sashelp.class data set contains a SEX and a NAME variable (both character), so if I want to read the numeric variables I might just say:&lt;/P&gt;&lt;P&gt;use sashelp.class;&lt;/P&gt;&lt;P&gt;read all var _num_ into X;&lt;/P&gt;&lt;P&gt;close sashelp.class;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 00:32:47 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2013-09-06T00:32:47Z</dc:date>
    <item>
      <title>Naming the matrix same name as the dataset table</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Naming-the-matrix-same-name-as-the-dataset-table/m-p/130592#M1020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;Would you recommend naming the matrix through use/read/close same name as the dataset or different name?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;(and conversely from IML matrix to a table)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;Using the same name might lead to confusion; also, is there any possible such interference?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;On the other hand, using different names at same point looks like clutter.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 21:38:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Naming-the-matrix-same-name-as-the-dataset-table/m-p/130592#M1020</guid>
      <dc:creator>Bogdan</dc:creator>
      <dc:date>2013-09-05T21:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Naming the matrix same name as the dataset table</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Naming-the-matrix-same-name-as-the-dataset-table/m-p/130593#M1021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no conflict, so you can do whichever you prefer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, it varies. If there is a correlation matrix in a data set named CORR, I might read it into a matrix of the same name.&lt;/P&gt;&lt;P&gt;If the data set is named MyCorrelationMatrix, I'll probably just read it into S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most real data sets have both character and numeric variables, so you can't read all variables into a single matrix. For example: the sashelp.class data set contains a SEX and a NAME variable (both character), so if I want to read the numeric variables I might just say:&lt;/P&gt;&lt;P&gt;use sashelp.class;&lt;/P&gt;&lt;P&gt;read all var _num_ into X;&lt;/P&gt;&lt;P&gt;close sashelp.class;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 00:32:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Naming-the-matrix-same-name-as-the-dataset-table/m-p/130593#M1021</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-09-06T00:32:47Z</dc:date>
    </item>
  </channel>
</rss>

