{"id":3474,"date":"2023-07-17T07:23:06","date_gmt":"2023-07-17T07:23:06","guid":{"rendered":"https:\/\/statorials.org\/tr\/r-tek-satir\/"},"modified":"2023-07-17T07:23:06","modified_gmt":"2023-07-17T07:23:06","slug":"r-tek-satir","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/r-tek-satir\/","title":{"rendered":"R&#39;de bir veri \u00e7er\u00e7evesindeki tek sat\u0131rlar nas\u0131l se\u00e7ilir"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">R&#8217;de bir veri \u00e7er\u00e7evesindeki tek sat\u0131rlar\u0131 se\u00e7mek i\u00e7in a\u015fa\u011f\u0131daki y\u00f6ntemleri kullanabilirsiniz:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 1: T\u00fcm S\u00fctunlarda Tek Sat\u0131rlar\u0131 Se\u00e7in<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">library<\/span> (dplyr)\n\ndf %&gt;% distinct()<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 2: Bir S\u00fctuna G\u00f6re Tek Sat\u0131rlar\u0131 Se\u00e7in<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">library<\/span> (dplyr)<\/span>\n\n<span style=\"color: #000000;\">df %&gt;% distinct(column1, . <span style=\"color: #3366ff;\">keep_all<\/span> = <span style=\"color: #008000;\">TRUE<\/span> )<\/span>\n<\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 3: Birden \u00c7ok S\u00fctuna Dayal\u0131 Tek Sat\u0131rlar\u0131 Se\u00e7me<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">library<\/span> (dplyr)\n\ndf %&gt;% distinct(column1, column2, . <span style=\"color: #3366ff;\">keep_all<\/span> = <span style=\"color: #008000;\">TRUE<\/span> )<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Bu e\u011fitimde her y\u00f6ntemin pratikte a\u015fa\u011f\u0131daki veri \u00e7er\u00e7evesiyle nas\u0131l kullan\u0131laca\u011f\u0131 a\u00e7\u0131klanmaktad\u0131r:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#create data frame\n<span style=\"color: #000000;\">df &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (team=c('A', 'A', 'A', 'A', 'B', 'B', 'B', 'B'),\n                 position=c('G', 'G', 'F', 'F', 'G', 'G', 'F', 'F'),\n                 points=c(10, 10, 8, 14, 15, 15, 17, 17))\n<\/span>\n#view data frame\n<span style=\"color: #000000;\">df\n\n  team position points\n1 AG 10\n2 AG 10\n3AF 8\n4 AF 14\n5 BG 15\n6 BG 15\n7 BF 17\n8 BF 17\n<\/span><\/span><\/strong><\/span><\/pre>\n<h2> <span style=\"color: #000000;\"><strong>\u00d6rnek 1: T\u00fcm s\u00fctunlardaki benzersiz sat\u0131rlar\u0131 se\u00e7in<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, veri \u00e7er\u00e7evesindeki t\u00fcm s\u00fctunlarda benzersiz de\u011ferlere sahip sat\u0131rlar\u0131n nas\u0131l se\u00e7ilece\u011fini g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">library<\/span> (dplyr)<\/span>\n\n#select rows with unique values across all columns\n<span style=\"color: #000000;\">df %&gt;% distinct()\n\n  team position points\n1 AG 10\n2AF 8\n3 AF 14\n4 BG 15\n5 BF 17\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Veri \u00e7er\u00e7evesinde be\u015f benzersiz sat\u0131r\u0131n oldu\u011funu g\u00f6rebiliriz.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Not<\/strong> : Yinelenen sat\u0131rlarla kar\u015f\u0131la\u015f\u0131ld\u0131\u011f\u0131nda yaln\u0131zca ilk benzersiz sat\u0131r korunur.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\u00d6rnek 2: Bir S\u00fctuna G\u00f6re Tek Sat\u0131r Se\u00e7me<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, yaln\u0131zca <strong>ekip<\/strong> s\u00fctununa g\u00f6re tek sat\u0131rlar\u0131n nas\u0131l se\u00e7ilece\u011fini g\u00f6sterir.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">library<\/span> (dplyr)\n\n<span style=\"color: #008080;\">#select rows with unique values based on team column only<\/span>\ndf %&gt;% distinct(team, . <span style=\"color: #3366ff;\">keep_all<\/span> = <span style=\"color: #008000;\">TRUE<\/span> )\n\n  team position points\n1 AG 10\n2 BG 15\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\"><strong>Tak\u0131m<\/strong> s\u00fctununda yaln\u0131zca iki benzersiz de\u011fer bulundu\u011fundan, her de\u011ferin yaln\u0131zca ilk ge\u00e7ti\u011fi sat\u0131rlar tutulur.<\/span><\/span><\/p>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\"><strong>Not<\/strong> : <strong>.keep_all=TRUE<\/strong> arg\u00fcman\u0131 R&#8217;ye \u00e7\u0131kt\u0131daki di\u011fer t\u00fcm s\u00fctunlar\u0131 tutmas\u0131n\u0131 s\u00f6yler.<\/span><\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\u00d6rnek 3: Birden \u00c7ok S\u00fctuna G\u00f6re Tek Sat\u0131r Se\u00e7me<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, yaln\u0131zca <strong>ekip<\/strong> ve <strong>konum<\/strong> s\u00fctunlar\u0131na g\u00f6re tek sat\u0131rlar\u0131n nas\u0131l se\u00e7ilece\u011fini g\u00f6sterir.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">library<\/span> (dplyr)\n\n<span style=\"color: #008080;\">#select rows with unique values based on team and position columns only<\/span>\ndf %&gt;% distinct(team, position, . <span style=\"color: #3366ff;\">keep_all<\/span> = <span style=\"color: #008000;\">TRUE<\/span> )\n\n  team position points\n1 AG 10\n2AF 8\n3 BG 15\n4 BF 17\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\"><strong>Tak\u0131m<\/strong> ve <strong>Pozisyon<\/strong> s\u00fctunlar\u0131nda d\u00f6rt benzersiz de\u011fer kombinasyonu bulundu\u011fundan d\u00f6rt sat\u0131r d\u00f6nd\u00fcr\u00fcl\u00fcr.<\/span><\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki e\u011fitimlerde R&#8217;de di\u011fer ortak g\u00f6revlerin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/tr\/tek-dplyr-filtresi\/\" target=\"_blank\" rel=\"noopener\">Dplyr kullanarak benzersiz de\u011ferler nas\u0131l filtrelenir<\/a><br \/> Dplyr kullanarak birden \u00e7ok ko\u015fula g\u00f6re filtreleme nas\u0131l yap\u0131l\u0131r<br \/> <a href=\"https:\/\/statorials.org\/tr\/r-sutundaki-olusum-sayisini-sayin\/\" target=\"_blank\" rel=\"noopener\">R&#8217;deki s\u00fctunlardaki olu\u015fum say\u0131s\u0131 nas\u0131l say\u0131l\u0131r?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>R&#8217;de bir veri \u00e7er\u00e7evesindeki tek sat\u0131rlar\u0131 se\u00e7mek i\u00e7in a\u015fa\u011f\u0131daki y\u00f6ntemleri kullanabilirsiniz: Y\u00f6ntem 1: T\u00fcm S\u00fctunlarda Tek Sat\u0131rlar\u0131 Se\u00e7in library (dplyr) df %&gt;% distinct() Y\u00f6ntem 2: Bir S\u00fctuna G\u00f6re Tek Sat\u0131rlar\u0131 Se\u00e7in library (dplyr) df %&gt;% distinct(column1, . keep_all = TRUE ) Y\u00f6ntem 3: Birden \u00c7ok S\u00fctuna Dayal\u0131 Tek Sat\u0131rlar\u0131 Se\u00e7me library (dplyr) df %&gt;% distinct(column1, [&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-3474","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 - Statorials&#039;de bir veri \u00e7er\u00e7evesindeki tek sat\u0131rlar nas\u0131l se\u00e7ilir<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde, R&#039;deki bir veri \u00e7er\u00e7evesinden tek sat\u0131rlar\u0131n nas\u0131l se\u00e7ilece\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\/r-tek-satir\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R - Statorials&#039;de bir veri \u00e7er\u00e7evesindeki tek sat\u0131rlar nas\u0131l se\u00e7ilir\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde, R&#039;deki bir veri \u00e7er\u00e7evesinden tek sat\u0131rlar\u0131n nas\u0131l se\u00e7ilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/r-tek-satir\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-17T07:23:06+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\/r-tek-satir\/\",\"url\":\"https:\/\/statorials.org\/tr\/r-tek-satir\/\",\"name\":\"R - Statorials&#39;de bir veri \u00e7er\u00e7evesindeki tek sat\u0131rlar nas\u0131l se\u00e7ilir\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-17T07:23:06+00:00\",\"dateModified\":\"2023-07-17T07:23:06+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde, R&#39;deki bir veri \u00e7er\u00e7evesinden tek sat\u0131rlar\u0131n nas\u0131l se\u00e7ilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/r-tek-satir\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/r-tek-satir\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/r-tek-satir\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R&#39;de bir veri \u00e7er\u00e7evesindeki tek sat\u0131rlar nas\u0131l se\u00e7ilir\"}]},{\"@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 - Statorials&#39;de bir veri \u00e7er\u00e7evesindeki tek sat\u0131rlar nas\u0131l se\u00e7ilir","description":"Bu e\u011fitimde, R&#39;deki bir veri \u00e7er\u00e7evesinden tek sat\u0131rlar\u0131n nas\u0131l se\u00e7ilece\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\/r-tek-satir\/","og_locale":"tr_TR","og_type":"article","og_title":"R - Statorials&#39;de bir veri \u00e7er\u00e7evesindeki tek sat\u0131rlar nas\u0131l se\u00e7ilir","og_description":"Bu e\u011fitimde, R&#39;deki bir veri \u00e7er\u00e7evesinden tek sat\u0131rlar\u0131n nas\u0131l se\u00e7ilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/r-tek-satir\/","og_site_name":"Statorials","article_published_time":"2023-07-17T07:23:06+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\/r-tek-satir\/","url":"https:\/\/statorials.org\/tr\/r-tek-satir\/","name":"R - Statorials&#39;de bir veri \u00e7er\u00e7evesindeki tek sat\u0131rlar nas\u0131l se\u00e7ilir","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-17T07:23:06+00:00","dateModified":"2023-07-17T07:23:06+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde, R&#39;deki bir veri \u00e7er\u00e7evesinden tek sat\u0131rlar\u0131n nas\u0131l se\u00e7ilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/r-tek-satir\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/r-tek-satir\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/r-tek-satir\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"R&#39;de bir veri \u00e7er\u00e7evesindeki tek sat\u0131rlar nas\u0131l se\u00e7ilir"}]},{"@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\/3474","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=3474"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/3474\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=3474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=3474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=3474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}