{"id":2288,"date":"2023-07-22T22:28:49","date_gmt":"2023-07-22T22:28:49","guid":{"rendered":"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/"},"modified":"2023-07-22T22:28:49","modified_gmt":"2023-07-22T22:28:49","slug":"rde-birden-fazla-veri-cercevesini-birlestirme","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/","title":{"rendered":"R&#39;de \u00e7oklu veri \u00e7er\u00e7eveleri nas\u0131l birle\u015ftirilir (\u00f6rneklerle)"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">R&#8217;de birden fazla veri \u00e7er\u00e7evesini birle\u015ftirmek i\u00e7in iki y\u00f6ntemden birini kullanabilirsiniz:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 1: Base R&#8217;yi kullan\u0131n<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #ff0000;\"><span style=\"color: #000000;\"><span style=\"color: #008080;\">#put all data frames into list\n<\/span>df_list &lt;- list(df1, df2, df3)\n\n<span style=\"color: #008080;\">#merge all data frames into list\n<\/span>Reduce(function(x, y) merge(x, y, all= <span style=\"color: #008000;\">TRUE<\/span> ), df_list)<\/span>\n<\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 2: Tidyverse&#8217;yi kullan\u0131n<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #ff0000;\"><span style=\"color: #000000;\"><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">library<\/span> (tidyverse)<\/span>\n\n#put all data frames into list\n<\/span>df_list &lt;- list(df1, df2, df3)\n\n<span style=\"color: #008080;\">#merge all data frames into list\n<\/span>df_list %&gt;% reduce(full_join, by=' <span style=\"color: #ff0000;\">variable_name<\/span> ')\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnekler her y\u00f6ntemin pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6stermektedir.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 1: Base R&#8217;yi Kullanarak Birden \u00c7ok Veri \u00c7er\u00e7evesini Birle\u015ftirme<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">R&#8217;de a\u015fa\u011f\u0131daki veri \u00e7er\u00e7evelerine sahip oldu\u011fumuzu varsayal\u0131m:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008080;\">#define data frames\n<\/span>df1 &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (id=c(1, 2, 3, 4, 5),\n                  revenue=c(34, 36, 40, 49, 43))\n\ndf2 &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (id=c(1, 2, 5, 6, 7),\n                  expenses=c(22, 26, 31, 40, 20))\n\ndf3 &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (id=c(1, 2, 4, 5, 7),\n                  profit=c(12, 10, 14, 12, 9))<\/span><\/span><\/strong>\n<\/pre>\n<p> <span style=\"color: #000000;\">R taban i\u015flevlerini kullanarak t\u00fcm veri \u00e7er\u00e7evelerini birle\u015ftirmek i\u00e7in a\u015fa\u011f\u0131daki s\u00f6zdizimini kullanabiliriz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008080;\">#put all data frames into list\n<\/span>df_list &lt;- list(df1, df2, df3)      \n\n<span style=\"color: #008080;\">#merge all data frames together\n<\/span>Reduce(function(x, y) merge(x, y, all= <span style=\"color: #008000;\">TRUE<\/span> ), df_list)  \n\n  id revenue expenses profit\n1 1 34 22 12\n2 2 36 26 10\n3 3 40 NA NA\n4 4 49 NA 14\n5 5 43 31 12\n6 6 NA 40 NA\n7 7 NA 20 9<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Her orijinal veri blo\u011fundaki &#8220;id&#8221; de\u011ferlerinin her birinin, son veri blo\u011funa dahil edildi\u011fini unutmay\u0131n.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 2: Tidyverse Kullanarak Birden \u00c7ok Veri \u00c7er\u00e7evesini Birle\u015ftirme<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">R&#8217;de a\u015fa\u011f\u0131daki veri \u00e7er\u00e7evelerine sahip oldu\u011fumuzu varsayal\u0131m:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008080;\">#define data frames\n<\/span>df1 &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (id=c(1, 2, 3, 4, 5),\n                  revenue=c(34, 36, 40, 49, 43))\n\ndf2 &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (id=c(1, 2, 5, 6, 7),\n                  expenses=c(22, 26, 31, 40, 20))\n\ndf3 &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (id=c(1, 2, 4, 5, 7),\n                  profit=c(12, 10, 14, 12, 9))<\/span><\/span><\/strong>\n<\/pre>\n<p> <span style=\"color: #000000;\">R&#8217;de veri bilimi i\u00e7in tasarlanm\u0131\u015f bir paket koleksiyonu olan <a href=\"https:\/\/www.tidyverse.org\/\" target=\"_blank\" rel=\"noopener\">Tidyverse&#8217;deki<\/a> i\u015flevleri kullanarak t\u00fcm veri \u00e7er\u00e7evelerini birle\u015ftirmek i\u00e7in a\u015fa\u011f\u0131daki s\u00f6zdizimini kullanabiliriz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">library<\/span> (tidyverse)<\/span>\n\n#put all data frames into list\n<\/span>df_list &lt;- list(df1, df2, df3)      \n\n<span style=\"color: #008080;\">#merge all data frames together\n<\/span>df_list %&gt;% reduce(full_join, by=' <span style=\"color: #ff0000;\">id<\/span> ')\n\n  id revenue expenses profit\n1 1 34 22 12\n2 2 36 26 10\n3 3 40 NA NA\n4 4 49 NA 14\n5 5 43 31 12\n6 6 NA 40 NA\n7 7 NA 20 9<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Nihai veri \u00e7er\u00e7evesinin, ilk y\u00f6ntemi kullanarak \u00fcretti\u011fimiz veri \u00e7er\u00e7evesiyle e\u015fle\u015fti\u011fini unutmay\u0131n.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Not<\/strong> : \u00c7ok b\u00fcy\u00fck veri \u00e7er\u00e7eveleriyle \u00e7al\u0131\u015f\u0131yorsan\u0131z Tidyverse yakla\u015f\u0131m\u0131 fark edilir derecede daha h\u0131zl\u0131 olacakt\u0131r.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki e\u011fitimlerde R&#8217;de di\u011fer ortak i\u015flevlerin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r:<\/span><\/p>\n<p><a href=\"https:\/\/statorials.org\/tr\/r-birden-fazla-sutunu-birlestir\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de birden \u00e7ok s\u00fctuna dayal\u0131 veri \u00e7er\u00e7eveleri nas\u0131l birle\u015ftirilir<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/rdeki-yigin-sutunlari\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de veri \u00e7er\u00e7evesi s\u00fctunlar\u0131 nas\u0131l istiflenir<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/dplyr-anti-birlestirme\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de anti_join nas\u0131l kullan\u0131l\u0131r?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>R&#8217;de birden fazla veri \u00e7er\u00e7evesini birle\u015ftirmek i\u00e7in iki y\u00f6ntemden birini kullanabilirsiniz: Y\u00f6ntem 1: Base R&#8217;yi kullan\u0131n #put all data frames into list df_list &lt;- list(df1, df2, df3) #merge all data frames into list Reduce(function(x, y) merge(x, y, all= TRUE ), df_list) Y\u00f6ntem 2: Tidyverse&#8217;yi kullan\u0131n library (tidyverse) #put all data frames into list df_list &lt;- [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-2288","post","type-post","status-publish","format-standard","hentry","category-rehber"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>R&#039;de \u00c7oklu Veri \u00c7er\u00e7eveleri Nas\u0131l Birle\u015ftirilir (\u00d6rneklerle) - Statorials<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde R&#039;de birden fazla veri \u00e7er\u00e7evesinin nas\u0131l birle\u015ftirilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R&#039;de \u00c7oklu Veri \u00c7er\u00e7eveleri Nas\u0131l Birle\u015ftirilir (\u00d6rneklerle) - Statorials\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde R&#039;de birden fazla veri \u00e7er\u00e7evesinin nas\u0131l birle\u015ftirilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-22T22:28:49+00:00\" \/>\n<meta name=\"author\" content=\"Dr.benjamin anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr.benjamin anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/\",\"url\":\"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/\",\"name\":\"R&#39;de \u00c7oklu Veri \u00c7er\u00e7eveleri Nas\u0131l Birle\u015ftirilir (\u00d6rneklerle) - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-22T22:28:49+00:00\",\"dateModified\":\"2023-07-22T22:28:49+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde R&#39;de birden fazla veri \u00e7er\u00e7evesinin nas\u0131l birle\u015ftirilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R&#39;de \u00e7oklu veri \u00e7er\u00e7eveleri nas\u0131l birle\u015ftirilir (\u00f6rneklerle)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/tr\/#website\",\"url\":\"https:\/\/statorials.org\/tr\/\",\"name\":\"Statorials\",\"description\":\"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/tr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"tr\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\",\"name\":\"Dr.benjamin anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr.benjamin anderson\"},\"description\":\"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil\",\"sameAs\":[\"https:\/\/statorials.org\/tr\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"R&#39;de \u00c7oklu Veri \u00c7er\u00e7eveleri Nas\u0131l Birle\u015ftirilir (\u00d6rneklerle) - Statorials","description":"Bu e\u011fitimde R&#39;de birden fazla veri \u00e7er\u00e7evesinin nas\u0131l birle\u015ftirilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/","og_locale":"tr_TR","og_type":"article","og_title":"R&#39;de \u00c7oklu Veri \u00c7er\u00e7eveleri Nas\u0131l Birle\u015ftirilir (\u00d6rneklerle) - Statorials","og_description":"Bu e\u011fitimde R&#39;de birden fazla veri \u00e7er\u00e7evesinin nas\u0131l birle\u015ftirilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/","og_site_name":"Statorials","article_published_time":"2023-07-22T22:28:49+00:00","author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Dr.benjamin anderson","Tahmini okuma s\u00fcresi":"2 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/","url":"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/","name":"R&#39;de \u00c7oklu Veri \u00c7er\u00e7eveleri Nas\u0131l Birle\u015ftirilir (\u00d6rneklerle) - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-22T22:28:49+00:00","dateModified":"2023-07-22T22:28:49+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde R&#39;de birden fazla veri \u00e7er\u00e7evesinin nas\u0131l birle\u015ftirilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/rde-birden-fazla-veri-cercevesini-birlestirme\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"R&#39;de \u00e7oklu veri \u00e7er\u00e7eveleri nas\u0131l birle\u015ftirilir (\u00f6rneklerle)"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/tr\/#website","url":"https:\/\/statorials.org\/tr\/","name":"Statorials","description":"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/tr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"tr"},{"@type":"Person","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48","name":"Dr.benjamin anderson","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Dr.benjamin anderson"},"description":"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil","sameAs":["https:\/\/statorials.org\/tr"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/2288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/comments?post=2288"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/2288\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=2288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=2288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=2288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}