{"id":955,"date":"2023-07-28T04:59:42","date_gmt":"2023-07-28T04:59:42","guid":{"rendered":"https:\/\/statorials.org\/tr\/dplyr-dizesini-iceren-filtre-satirlari\/"},"modified":"2023-07-28T04:59:42","modified_gmt":"2023-07-28T04:59:42","slug":"dplyr-dizesini-iceren-filtre-satirlari","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/dplyr-dizesini-iceren-filtre-satirlari\/","title":{"rendered":"Belirli bir dizeyi i\u00e7eren sat\u0131rlar\u0131 dplyr kullanarak nas\u0131l filtreleyebilirim?"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Genellikle R&#8217;deki bir veri \u00e7er\u00e7evesindeki belirli bir dizeyi i\u00e7eren sat\u0131rlar\u0131 filtrelemek isteyebilirsiniz. Neyse ki, <a href=\"https:\/\/dplyr.tidyverse.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">dplyr<\/a> paketindeki <strong>filter()<\/strong> i\u015flevini ve Base R&#8217;deki <strong>grepl()<\/strong> i\u015flevini kullanarak bunu yapmak kolayd\u0131r.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu e\u011fitimde, a\u015fa\u011f\u0131daki veri \u00e7er\u00e7evesini kullanarak bu i\u015flevlerin pratik kullan\u0131m\u0131na ili\u015fkin birka\u00e7 \u00f6rnek g\u00f6sterilmektedir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create data frame<\/span>\ndf &lt;- data.frame(player = c('P Guard', 'S Guard', 'S Forward', 'P Forward', 'Center'),\n                 points = c(12, 15, 19, 22, 32),\n                 rebounds = c(5, 7, 7, 12, 11))\n\n<span style=\"color: #008080;\">#view data frame\n<\/span>df\n\n     player points rebounds\n1 P Guard 12 5\n2 S Guard 15 7\n3S Forward 19 7\n4 P Forward 22 12\n5 Center 32 11\n<\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 1: Belirli bir dize i\u00e7eren sat\u0131rlar\u0131 filtreleme<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, belirli bir dizeyi i\u00e7eren sat\u0131rlar\u0131n nas\u0131l filtrelenece\u011fini g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#load dplyr package\n<span style=\"color: #000000;\">library(dplyr)<\/span>\n\n#filter rows that contain the string 'Guard' in the player column<\/span>\ndf %&gt;% <span style=\"color: #3366ff;\">filter<\/span> ( <span style=\"color: #3366ff;\">grepl<\/span> ('Guard', player))\n\n   player points rebounds\n1 P Guard 12 5\n2 S Guard 15 7<\/strong><\/pre>\n<p> <strong><span style=\"color: #000000;\">\u0130lgili:<\/span><\/strong> <a href=\"https:\/\/statorials.org\/tr\/grep-ve-grepl-r\/\">R&#8217;de grep() ve grepl() \u00f6\u011felerinin kar\u015f\u0131la\u015ft\u0131r\u0131lmas\u0131: Fark nedir?<\/a><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 2: En az bir dize i\u00e7eren sat\u0131rlar\u0131 filtreleme<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, oynat\u0131c\u0131 s\u00fctununda &#8220;Koruma&#8221; veya &#8220;\u0130leri&#8221; i\u00e7eren sat\u0131rlar\u0131n nas\u0131l filtrelenece\u011fini g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#filter rows that contain 'Guard' or 'Forward' in the player column<\/span>\ndf %&gt;% <span style=\"color: #3366ff;\">filter<\/span> ( <span style=\"color: #3366ff;\">grepl<\/span> ('Guard|Forward', player))\n\n     player points rebounds\n1 P Guard 12 5\n2 S Guard 15 7\n3S Forward 19 7\n4 P Forward 22 12<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, okuyucu s\u00fctununda &#8220;P&#8221; veya &#8220;Merkez&#8221; i\u00e7eren sat\u0131rlar\u0131n nas\u0131l filtrelenece\u011fini g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#filter rows that contain 'P' or 'Center' in the player column<\/span>\ndf %&gt;% <span style=\"color: #3366ff;\">filter<\/span> ( <span style=\"color: #3366ff;\">grepl<\/span> ('P|Center', player))\n\n     player points rebounds\n1 P Guard 12 5\n2 P Forward 22 12\n3 Center 32 11<\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 3: Belirli bir dize i\u00e7eren sat\u0131rlar\u0131 filtreleme<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, oynat\u0131c\u0131 s\u00fctununda &#8220;Guard&#8221; i\u00e7eren sat\u0131rlar\u0131n nas\u0131l filtrelenece\u011fini (yani kald\u0131r\u0131laca\u011f\u0131n\u0131) g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#filter out rows that contain 'Guard' in the player column<\/span>\ndf %&gt;% <span style=\"color: #3366ff;\">filter<\/span> (! <span style=\"color: #3366ff;\">grepl<\/span> ('Guard', player))\n\n     player points rebounds\n1S Forward 19 7\n2 P Forward 22 12\n3 Center 32 11<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, oynat\u0131c\u0131 s\u00fctununda &#8220;Koruma&#8221; veya &#8220;Merkez&#8221; i\u00e7eren sat\u0131rlar\u0131n nas\u0131l filtrelenece\u011fini (yani kald\u0131r\u0131laca\u011f\u0131n\u0131) g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#filter out rows that contain 'Guard' or 'Center' in the player column<\/span>\ndf %&gt;% <span style=\"color: #3366ff;\">filter<\/span> (! <span style=\"color: #3366ff;\">grepl<\/span> ('Guard|Center', player))\n\n     player points rebounds\n1S Forward 19 7\n2 P Forward 22 12<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><em>Daha fazla R e\u011fitimini burada bulabilirsiniz.<\/em><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Genellikle R&#8217;deki bir veri \u00e7er\u00e7evesindeki belirli bir dizeyi i\u00e7eren sat\u0131rlar\u0131 filtrelemek isteyebilirsiniz. Neyse ki, dplyr paketindeki filter() i\u015flevini ve Base R&#8217;deki grepl() i\u015flevini kullanarak bunu yapmak kolayd\u0131r. Bu e\u011fitimde, a\u015fa\u011f\u0131daki veri \u00e7er\u00e7evesini kullanarak bu i\u015flevlerin pratik kullan\u0131m\u0131na ili\u015fkin birka\u00e7 \u00f6rnek g\u00f6sterilmektedir: #create data frame df &lt;- data.frame(player = c(&#8216;P Guard&#8217;, &#8216;S Guard&#8217;, &#8216;S Forward&#8217;, &#8216;P [&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-955","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>Belirli bir dizeyi i\u00e7eren sat\u0131rlar\u0131 dplyr kullanarak nas\u0131l filtreleyebilirim?<\/title>\n<meta name=\"description\" content=\"Dplyr paketini kullanarak belirli bir dize i\u00e7eren bir veri \u00e7er\u00e7evesindeki sat\u0131rlar\u0131n nas\u0131l filtrelenece\u011fine dair basit bir a\u00e7\u0131klama.\" \/>\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\/dplyr-dizesini-iceren-filtre-satirlari\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Belirli bir dizeyi i\u00e7eren sat\u0131rlar\u0131 dplyr kullanarak nas\u0131l filtreleyebilirim?\" \/>\n<meta property=\"og:description\" content=\"Dplyr paketini kullanarak belirli bir dize i\u00e7eren bir veri \u00e7er\u00e7evesindeki sat\u0131rlar\u0131n nas\u0131l filtrelenece\u011fine dair basit bir a\u00e7\u0131klama.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/dplyr-dizesini-iceren-filtre-satirlari\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-28T04:59:42+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\/dplyr-dizesini-iceren-filtre-satirlari\/\",\"url\":\"https:\/\/statorials.org\/tr\/dplyr-dizesini-iceren-filtre-satirlari\/\",\"name\":\"Belirli bir dizeyi i\u00e7eren sat\u0131rlar\u0131 dplyr kullanarak nas\u0131l filtreleyebilirim?\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-28T04:59:42+00:00\",\"dateModified\":\"2023-07-28T04:59:42+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Dplyr paketini kullanarak belirli bir dize i\u00e7eren bir veri \u00e7er\u00e7evesindeki sat\u0131rlar\u0131n nas\u0131l filtrelenece\u011fine dair basit bir a\u00e7\u0131klama.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/dplyr-dizesini-iceren-filtre-satirlari\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/dplyr-dizesini-iceren-filtre-satirlari\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/dplyr-dizesini-iceren-filtre-satirlari\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Belirli bir dizeyi i\u00e7eren sat\u0131rlar\u0131 dplyr kullanarak nas\u0131l filtreleyebilirim?\"}]},{\"@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":"Belirli bir dizeyi i\u00e7eren sat\u0131rlar\u0131 dplyr kullanarak nas\u0131l filtreleyebilirim?","description":"Dplyr paketini kullanarak belirli bir dize i\u00e7eren bir veri \u00e7er\u00e7evesindeki sat\u0131rlar\u0131n nas\u0131l filtrelenece\u011fine dair basit bir a\u00e7\u0131klama.","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\/dplyr-dizesini-iceren-filtre-satirlari\/","og_locale":"tr_TR","og_type":"article","og_title":"Belirli bir dizeyi i\u00e7eren sat\u0131rlar\u0131 dplyr kullanarak nas\u0131l filtreleyebilirim?","og_description":"Dplyr paketini kullanarak belirli bir dize i\u00e7eren bir veri \u00e7er\u00e7evesindeki sat\u0131rlar\u0131n nas\u0131l filtrelenece\u011fine dair basit bir a\u00e7\u0131klama.","og_url":"https:\/\/statorials.org\/tr\/dplyr-dizesini-iceren-filtre-satirlari\/","og_site_name":"Statorials","article_published_time":"2023-07-28T04:59:42+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\/dplyr-dizesini-iceren-filtre-satirlari\/","url":"https:\/\/statorials.org\/tr\/dplyr-dizesini-iceren-filtre-satirlari\/","name":"Belirli bir dizeyi i\u00e7eren sat\u0131rlar\u0131 dplyr kullanarak nas\u0131l filtreleyebilirim?","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-28T04:59:42+00:00","dateModified":"2023-07-28T04:59:42+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Dplyr paketini kullanarak belirli bir dize i\u00e7eren bir veri \u00e7er\u00e7evesindeki sat\u0131rlar\u0131n nas\u0131l filtrelenece\u011fine dair basit bir a\u00e7\u0131klama.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/dplyr-dizesini-iceren-filtre-satirlari\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/dplyr-dizesini-iceren-filtre-satirlari\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/dplyr-dizesini-iceren-filtre-satirlari\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"Belirli bir dizeyi i\u00e7eren sat\u0131rlar\u0131 dplyr kullanarak nas\u0131l filtreleyebilirim?"}]},{"@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\/955","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=955"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/955\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}