<?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 merge table from 2 csv files in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/merge-table-from-2-csv-files/m-p/287196#M55433</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two csv files (round1.csv &amp;amp; round2.csv). How can I merge into a new table mergeRound.csv. I was trying to play around with the&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last Name,First Name,Number combine should be the same. The rest of the columns should be merge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was playing around the Tables menu but cannot figure it out before putting it to JSL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:18:10 GMT</pubDate>
    <dc:creator>sam_t</dc:creator>
    <dc:date>2023-06-10T23:18:10Z</dc:date>
    <item>
      <title>merge table from 2 csv files</title>
      <link>https://community.jmp.com/t5/Discussions/merge-table-from-2-csv-files/m-p/287196#M55433</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two csv files (round1.csv &amp;amp; round2.csv). How can I merge into a new table mergeRound.csv. I was trying to play around with the&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last Name,First Name,Number combine should be the same. The rest of the columns should be merge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was playing around the Tables menu but cannot figure it out before putting it to JSL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:18:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/merge-table-from-2-csv-files/m-p/287196#M55433</guid>
      <dc:creator>sam_t</dc:creator>
      <dc:date>2023-06-10T23:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: merge table from 2 csv files</title>
      <link>https://community.jmp.com/t5/Discussions/merge-table-from-2-csv-files/m-p/287207#M55434</link>
      <description>&lt;P&gt;I would set up your data in an analytical form.&amp;nbsp; Basically, the data are concatenated.&amp;nbsp; See illustration below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="concat.PNG" style="width: 725px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26336i1342042562AC513B/image-size/large?v=v2&amp;amp;px=999" role="button" title="concat.PNG" alt="concat.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 02:24:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/merge-table-from-2-csv-files/m-p/287207#M55434</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-22T02:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: merge table from 2 csv files</title>
      <link>https://community.jmp.com/t5/Discussions/merge-table-from-2-csv-files/m-p/287219#M55436</link>
      <description>&lt;P&gt;Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last Name, First Name, and Number will be my unique key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was going to compare each individual assist, block, score, dunk, etc... via plot Last Name, First Name, and Number.&amp;nbsp;by between round 1 &amp;amp; round 2. That's why I put it in the same row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if that is the right thing to do.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 04:25:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/merge-table-from-2-csv-files/m-p/287219#M55436</guid>
      <dc:creator>sam_t</dc:creator>
      <dc:date>2020-08-22T04:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: merge table from 2 csv files</title>
      <link>https://community.jmp.com/t5/Discussions/merge-table-from-2-csv-files/m-p/287232#M55438</link>
      <description>&lt;P&gt;The format that I suggest is supported within Graph Builder to produce your suggested graph(s)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="concat2.PNG" style="width: 455px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26339i11B88B86A2CFEF4F/image-dimensions/455x286?v=v2" width="455" height="286" role="button" title="concat2.PNG" alt="concat2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="concat3.PNG" style="width: 437px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26340iD06FEE47411A188E/image-dimensions/437x304?v=v2" width="437" height="304" role="button" title="concat3.PNG" alt="concat3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Below is a script that produces these graphs from the Concatenated form of the data.&amp;nbsp; Additionally, if your merged form of the data the&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Tables==&amp;gt;Split&lt;/P&gt;
&lt;P&gt;can easily be used to split the data to a row based format&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);

dt = New Table( "Concat",
	Add Rows( 13 ),
	New Column( "Playoffs",
		Character( 8 ),
		"Nominal",
		Set Values(
			{"Round1", "Round1", "Round1", "Round1", "Round1", "Round2", "Round2",
			"Round2", "Round2", "Round2", "Round2", "Round2", "Round2"}
		)
	),
	New Column( "Last Name",
		Character( 8 ),
		"Nominal",
		Set Values(
			{"Adam", "Bell", "Cody", "Doe", "Evan", "Adam", "Bell", "Cody", "Doe",
			"Evan", "Faith", "Gracie", "Haley"}
		)
	),
	New Column( "First Name",
		Character( 8 ),
		"Nominal",
		Set Values(
			{"Sophia", "Isabella", "Emma", "Olivia", "Ava", "Sophia", "Isabella",
			"Emma", "Olivia", "Ava", "Clara", "Vivian", "Jada"}
		)
	),
	New Column( "Number",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 15, 20, 99] )
	),
	New Column( "Assist",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [5, 8, 9, 7, 15, 6, 4, 5, 8, 9, 1, 2, 9] )
	),
	New Column( "Block",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [1, 0, 2, 8, 6, 7, 4, 5, 6, 1, 3, ., 9] )
	),
	New Column( "Dunk",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [0, 0, 0, 5, 3, 7, 9, 5, 1, 3, ., 6, 5] )
	),
	New Column( "Score",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [10, 5, 6, 12, 10, 10, 5, 6, 12, 10, 8, 1, 5] )
	)
);

Graph Builder(
	Size( 739, 450 ),
	Show Control Panel( 0 ),
	Variables(
		X(
			Transform Column(
				"Concatenate[Las...st Name,Number]",
				Character,
				Formula(
					:Last Name || " " || :First Name || " " || Char( :Number )
				)
			)
		),
		Y( :Score ),
		Overlay( :Playoffs )
	),
	Elements( Bar( X, Y, Legend( 11 ) ) )
);

Graph Builder(
	Size( 739, 500 ),
	Show Control Panel( 0 ),
	Variables(
		X(
			Transform Column(
				"Concatenate[Las...st Name,Number]",
				Character,
				Formula(
					:Last Name || " " || :First Name || " " || Char( :Number )
				)
			)
		),
		Y( :Dunk ),
		Y( :Block ),
		Y( :Assist ),
		Y( :Score ),
		Group X( :Playoffs )
	),
	Elements( Position( 1, 1 ), Bar( X, Y, Legend( 15 ) ) ),
	Elements( Position( 1, 2 ), Bar( X, Y, Legend( 14 ) ) ),
	Elements( Position( 1, 3 ), Bar( X, Y, Legend( 12 ) ) ),
	Elements( Position( 1, 4 ), Bar( X, Y, Legend( 11 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 10:42:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/merge-table-from-2-csv-files/m-p/287232#M55438</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-22T10:42:24Z</dc:date>
    </item>
  </channel>
</rss>

