<?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 How to merge two specific rows in the dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-merge-two-specific-rows-in-the-dataset/m-p/782037#M31855</link>
    <description>&lt;P&gt;Hello, first off thanks for your help. The SAS community has been very helpful so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data that looks like this&lt;/P&gt;&lt;PRE&gt;County | Region | FIPS | Race | Applied Count
"Cool County" | 1 | 10101 | Asian | 5
"Cool County" | 1 | 10101 | Black or African American| 50
"Cool County" | 1 | 10101 | Other Race| 20
"Cool County" | 1 | 10101 | Unknown | 8
"Cool County" | 1 | 10101 | White | 30&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then have census population data that looks like this:&lt;/P&gt;&lt;PRE&gt;County | Region | FIPS | Race | Population
"Cool County" | 1 | 10101 | Asian | 6000
"Cool County" | 1 | 10101 | Black or African American| 35000
"Cool County" | 1 | 10101 | Other Race/ Unknown | 18000
"Cool County" | 1 | 10101 | White | 200000&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to combine the tables into something like this, so I can understand what percentage of the population applied.&lt;/P&gt;&lt;P&gt;County | Region | FIPS | Race | Applied Count | Population&lt;/P&gt;&lt;PRE&gt;"Cool County" | 1 | 10101 | Asian | 5 | 6000
"Cool County" | 1 | 10101 | Black or African American| 50 | 35000
"Cool County" | 1 | 10101 | Other Race/ Unknown | 28 | 18000
"Cool County" | 1 | 10101 | White | 30 | 200000&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I merge the "unknown" and "other race" rows in the Application Count table to better merge with the census data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All other rows line up and have a match and will have a match in the future. It's just the oddity of the "unknown" and "other race" rows.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Nov 2021 18:15:12 GMT</pubDate>
    <dc:creator>heyyou1</dc:creator>
    <dc:date>2021-11-23T18:15:12Z</dc:date>
    <item>
      <title>How to merge two specific rows in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-merge-two-specific-rows-in-the-dataset/m-p/782037#M31855</link>
      <description>&lt;P&gt;Hello, first off thanks for your help. The SAS community has been very helpful so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data that looks like this&lt;/P&gt;&lt;PRE&gt;County | Region | FIPS | Race | Applied Count
"Cool County" | 1 | 10101 | Asian | 5
"Cool County" | 1 | 10101 | Black or African American| 50
"Cool County" | 1 | 10101 | Other Race| 20
"Cool County" | 1 | 10101 | Unknown | 8
"Cool County" | 1 | 10101 | White | 30&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then have census population data that looks like this:&lt;/P&gt;&lt;PRE&gt;County | Region | FIPS | Race | Population
"Cool County" | 1 | 10101 | Asian | 6000
"Cool County" | 1 | 10101 | Black or African American| 35000
"Cool County" | 1 | 10101 | Other Race/ Unknown | 18000
"Cool County" | 1 | 10101 | White | 200000&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to combine the tables into something like this, so I can understand what percentage of the population applied.&lt;/P&gt;&lt;P&gt;County | Region | FIPS | Race | Applied Count | Population&lt;/P&gt;&lt;PRE&gt;"Cool County" | 1 | 10101 | Asian | 5 | 6000
"Cool County" | 1 | 10101 | Black or African American| 50 | 35000
"Cool County" | 1 | 10101 | Other Race/ Unknown | 28 | 18000
"Cool County" | 1 | 10101 | White | 30 | 200000&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I merge the "unknown" and "other race" rows in the Application Count table to better merge with the census data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All other rows line up and have a match and will have a match in the future. It's just the oddity of the "unknown" and "other race" rows.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 18:15:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-merge-two-specific-rows-in-the-dataset/m-p/782037#M31855</guid>
      <dc:creator>heyyou1</dc:creator>
      <dc:date>2021-11-23T18:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two specific rows in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-merge-two-specific-rows-in-the-dataset/m-p/782045#M31856</link>
      <description>&lt;P&gt;You could use a text editor to globally change&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Other Race/ Unknown&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;into&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Other Race&lt;/PRE&gt;
&lt;P&gt;Or you could do the same thing in a SAS data step&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 18:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-merge-two-specific-rows-in-the-dataset/m-p/782045#M31856</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-23T18:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two specific rows in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-merge-two-specific-rows-in-the-dataset/m-p/782046#M31857</link>
      <description>How would I do that with a data step while summing "Applied count" for both of them?</description>
      <pubDate>Tue, 23 Nov 2021 18:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-merge-two-specific-rows-in-the-dataset/m-p/782046#M31857</guid>
      <dc:creator>heyyou1</dc:creator>
      <dc:date>2021-11-23T18:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two specific rows in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-merge-two-specific-rows-in-the-dataset/m-p/782050#M31858</link>
      <description>&lt;P&gt;For your first data set:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data recoded;
set table1;
if race  in ( 'Other Race', Unknown') then race = 'Other Race/Unknown';
run;

proc means data=recoded noprint SUM;
by county region fips race;
var applied_count;
ods output summary = summarized;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then do a standard match merge process of your choice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/406768"&gt;@heyyou1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello, first off thanks for your help. The SAS community has been very helpful so far.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have data that looks like this&lt;/P&gt;
&lt;PRE&gt;County | Region | FIPS | Race | Applied Count
"Cool County" | 1 | 10101 | Asian | 5
"Cool County" | 1 | 10101 | Black or African American| 50
"Cool County" | 1 | 10101 | Other Race| 20
"Cool County" | 1 | 10101 | Unknown | 8
"Cool County" | 1 | 10101 | White | 30&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then have census population data that looks like this:&lt;/P&gt;
&lt;PRE&gt;County | Region | FIPS | Race | Population
"Cool County" | 1 | 10101 | Asian | 6000
"Cool County" | 1 | 10101 | Black or African American| 35000
"Cool County" | 1 | 10101 | Other Race/ Unknown | 18000
"Cool County" | 1 | 10101 | White | 200000&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to combine the tables into something like this, so I can understand what percentage of the population applied.&lt;/P&gt;
&lt;P&gt;County | Region | FIPS | Race | Applied Count | Population&lt;/P&gt;
&lt;PRE&gt;"Cool County" | 1 | 10101 | Asian | 5 | 6000
"Cool County" | 1 | 10101 | Black or African American| 50 | 35000
"Cool County" | 1 | 10101 | Other Race/ Unknown | 28 | 18000
"Cool County" | 1 | 10101 | White | 30 | 200000&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I merge the "unknown" and "other race" rows in the Application Count table to better merge with the census data?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All other rows line up and have a match and will have a match in the future. It's just the oddity of the "unknown" and "other race" rows.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 18:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-merge-two-specific-rows-in-the-dataset/m-p/782050#M31858</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-23T18:59:03Z</dc:date>
    </item>
  </channel>
</rss>

