{"id":3426,"date":"2023-07-17T13:30:52","date_gmt":"2023-07-17T13:30:52","guid":{"rendered":"https:\/\/statorials.org\/tr\/r-dizeyi-iceren-sutunlari-secin\/"},"modified":"2023-07-17T13:30:52","modified_gmt":"2023-07-17T13:30:52","slug":"r-dizeyi-iceren-sutunlari-secin","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/r-dizeyi-iceren-sutunlari-secin\/","title":{"rendered":"R&#39;de belirli bir dize i\u00e7eren s\u00fctunlar nas\u0131l se\u00e7ilir"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Belirli bir dize i\u00e7eren s\u00fctunlar\u0131 se\u00e7mek i\u00e7in R&#8217;deki <a href=\"https:\/\/dplyr.tidyverse.org\/\" target=\"_blank\" rel=\"noopener\">dplyr<\/a> paketindeki a\u015fa\u011f\u0131daki i\u015flevleri kullanabilirsiniz:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 1: Belirli bir dize i\u00e7eren s\u00fctunlar\u0131 se\u00e7in<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>df %&gt;%\n  select(matches(\" <span style=\"color: #ff0000;\">string1<\/span> \"))\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 2: Birka\u00e7 dizeden birini i\u00e7eren s\u00fctunlar\u0131 se\u00e7in<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>df %&gt;%\n  select(matches(\" <span style=\"color: #ff0000;\">string1|string2|string3<\/span> \"))<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnekler, R&#8217;deki a\u015fa\u011f\u0131daki veri \u00e7er\u00e7evesiyle bu y\u00f6ntemlerin her birinin pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create data frame\n<\/span>df &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (mavs=c(12, 10, 14, 19, 22, 25, 29),\n                 cavs=c(22, 41, 14, 15, 15, 19, 22),\n                 hornets=c(8, 8, 12, 14, 15, 13, 12),\n                 spurs=c(10, 12, 12, 16, 22, 28, 30),\n                 nets=c(9, 7, 10, 22, 28, 23, 25))\n\n<span style=\"color: #008080;\">#view data frame\n<\/span>df\n\n  mavs cavs hornets spurs nets\n1 12 22 8 10 9\n2 10 41 8 12 7\n3 14 14 12 12 10\n4 19 15 14 16 22\n5 22 15 15 22 28\n6 25 19 13 28 23\n7 29 22 12 30 25<\/strong><\/pre>\n<h2> <span style=\"color: #000000;\"><strong>\u00d6rnek 1: Belirli bir dize i\u00e7eren s\u00fctunlar\u0131 se\u00e7in<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, yaln\u0131zca ad\u0131n\u0131n herhangi bir yerinde &#8220;avs&#8221; dizesini i\u00e7eren s\u00fctunlar\u0131 se\u00e7mek i\u00e7in <b>match()<\/b> i\u015flevinin nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 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)\n\n<span style=\"color: #008080;\">#select all columns that contain \"avs\" in the name\n<\/span>df %&gt;%\n  select(matches(\" <span style=\"color: #ff0000;\">avs<\/span> \"))\n\n  mavs cavs\n1 12 22\n2 10 41\n3 14 14\n4 19 15\n5 22 15\n6 25 19\n7 29 22<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Yaln\u0131zca ad\u0131nda &#8220;avs&#8221; bulunan s\u00fctunlar d\u00f6nd\u00fcr\u00fcl\u00fcr.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu durumda d\u00f6nd\u00fcr\u00fclen s\u00fctunlar yaln\u0131zca &#8220;mavs&#8221; ve &#8220;cavs&#8221; olur.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\u00d6rnek 2: Birka\u00e7 dizeden birini i\u00e7eren s\u00fctunlar\u0131 se\u00e7in<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, yaln\u0131zca ad\u0131n\u0131n herhangi bir yerinde &#8220;avs&#8221; veya &#8220;ets&#8221; i\u00e7eren s\u00fctunlar\u0131 se\u00e7mek i\u00e7in <b>match()<\/b> i\u015flevinin nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 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)\n\n<span style=\"color: #008080;\">#select all columns that contain \"avs\" or \"ets\" in the name\n<\/span>df %&gt;%\n  select(matches(\" <span style=\"color: #ff0000;\">avs|ets<\/span> \"))\n\n  mavs cavs hornets nets\n1 12 22 8 9\n2 10 41 8 7\n3 14 14 12 10\n4 19 15 14 22\n5 22 15 15 28\n6 25 19 13 23\n7 29 22 12 25<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Yaln\u0131zca ad\u0131nda &#8220;avs&#8221; veya &#8220;ets&#8221; bulunan s\u00fctunlar d\u00f6nd\u00fcr\u00fcl\u00fcr.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Dikey \u00e7ubu\u011fun ( <strong>|<\/strong> ) R&#8217;deki &#8221; <strong>OR<\/strong> &#8221; operat\u00f6r\u00fc oldu\u011funa dikkat edin.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bir\u00e7ok farkl\u0131 dizeden birini i\u00e7eren s\u00fctunlar\u0131 se\u00e7mek i\u00e7in bu &#8220;OR&#8221; operat\u00f6rlerinden istedi\u011finiz kadar\u0131n\u0131 zincirlemekten \u00e7ekinmeyin.<\/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 dplyr kullan\u0131larak di\u011fer genel g\u00f6revlerin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/tr\/dplyr-sutunlari-ada-gore-sec\/\" target=\"_blank\" rel=\"noopener\">Dplyr kullanarak ada g\u00f6re s\u00fctunlar nas\u0131l se\u00e7ilir<\/a><br \/><a href=\"https:\/\/statorials.org\/tr\/dplyr-sutunlari-dizine-gore-sec\/\" target=\"_blank\" rel=\"noopener\">Dplyr kullanarak dizine g\u00f6re s\u00fctunlar nas\u0131l se\u00e7ilir<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/dplyr-birden-fazla-kosul-varsa-secin\/\" target=\"_blank\" rel=\"noopener\">Select_if&#8217;i dplyr&#8217;de birden \u00e7ok ko\u015fulla kullanma<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Belirli bir dize i\u00e7eren s\u00fctunlar\u0131 se\u00e7mek i\u00e7in R&#8217;deki dplyr paketindeki a\u015fa\u011f\u0131daki i\u015flevleri kullanabilirsiniz: Y\u00f6ntem 1: Belirli bir dize i\u00e7eren s\u00fctunlar\u0131 se\u00e7in df %&gt;% select(matches(&#8221; string1 &#8220;)) Y\u00f6ntem 2: Birka\u00e7 dizeden birini i\u00e7eren s\u00fctunlar\u0131 se\u00e7in df %&gt;% select(matches(&#8221; string1|string2|string3 &#8220;)) A\u015fa\u011f\u0131daki \u00f6rnekler, R&#8217;deki a\u015fa\u011f\u0131daki veri \u00e7er\u00e7evesiyle bu y\u00f6ntemlerin her birinin pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6sterir: #create data [&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-3426","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 belirli bir dize i\u00e7eren s\u00fctunlar nas\u0131l se\u00e7ilir<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde, R&#039;de belirli bir dize i\u00e7eren s\u00fctunlar\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-dizeyi-iceren-sutunlari-secin\/\" \/>\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 belirli bir dize i\u00e7eren s\u00fctunlar nas\u0131l se\u00e7ilir\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde, R&#039;de belirli bir dize i\u00e7eren s\u00fctunlar\u0131n nas\u0131l se\u00e7ilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/r-dizeyi-iceren-sutunlari-secin\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-17T13:30:52+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-dizeyi-iceren-sutunlari-secin\/\",\"url\":\"https:\/\/statorials.org\/tr\/r-dizeyi-iceren-sutunlari-secin\/\",\"name\":\"R - Statorials&#39;de belirli bir dize i\u00e7eren s\u00fctunlar nas\u0131l se\u00e7ilir\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-17T13:30:52+00:00\",\"dateModified\":\"2023-07-17T13:30:52+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde, R&#39;de belirli bir dize i\u00e7eren s\u00fctunlar\u0131n nas\u0131l se\u00e7ilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/r-dizeyi-iceren-sutunlari-secin\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/r-dizeyi-iceren-sutunlari-secin\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/r-dizeyi-iceren-sutunlari-secin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R&#39;de belirli bir dize i\u00e7eren s\u00fctunlar 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 belirli bir dize i\u00e7eren s\u00fctunlar nas\u0131l se\u00e7ilir","description":"Bu e\u011fitimde, R&#39;de belirli bir dize i\u00e7eren s\u00fctunlar\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-dizeyi-iceren-sutunlari-secin\/","og_locale":"tr_TR","og_type":"article","og_title":"R - Statorials&#39;de belirli bir dize i\u00e7eren s\u00fctunlar nas\u0131l se\u00e7ilir","og_description":"Bu e\u011fitimde, R&#39;de belirli bir dize i\u00e7eren s\u00fctunlar\u0131n nas\u0131l se\u00e7ilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/r-dizeyi-iceren-sutunlari-secin\/","og_site_name":"Statorials","article_published_time":"2023-07-17T13:30:52+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-dizeyi-iceren-sutunlari-secin\/","url":"https:\/\/statorials.org\/tr\/r-dizeyi-iceren-sutunlari-secin\/","name":"R - Statorials&#39;de belirli bir dize i\u00e7eren s\u00fctunlar nas\u0131l se\u00e7ilir","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-17T13:30:52+00:00","dateModified":"2023-07-17T13:30:52+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde, R&#39;de belirli bir dize i\u00e7eren s\u00fctunlar\u0131n nas\u0131l se\u00e7ilece\u011fi birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/r-dizeyi-iceren-sutunlari-secin\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/r-dizeyi-iceren-sutunlari-secin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/r-dizeyi-iceren-sutunlari-secin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"R&#39;de belirli bir dize i\u00e7eren s\u00fctunlar 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\/3426","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=3426"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/3426\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=3426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=3426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=3426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}