{"id":1045,"date":"2023-07-27T21:02:56","date_gmt":"2023-07-27T21:02:56","guid":{"rendered":"https:\/\/statorials.org\/tr\/r-ise-say\/"},"modified":"2023-07-27T21:02:56","modified_gmt":"2023-07-27T21:02:56","slug":"r-ise-say","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/r-ise-say\/","title":{"rendered":"R&#39;de countif i\u015flevi nas\u0131l \u00e7al\u0131\u015ft\u0131r\u0131l\u0131r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Genellikle bir R veri \u00e7er\u00e7evesindeki <em>yaln\u0131zca<\/em> belirli kriterleri kar\u015f\u0131layan sat\u0131r say\u0131s\u0131n\u0131 saymak isteyebilirsiniz. Neyse ki, a\u015fa\u011f\u0131daki temel s\u00f6zdizimini kullanarak bunu yapmak kolayd\u0131r:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>sum(df$column == value, na.rm= <span style=\"color: #008000;\">TRUE<\/span> )\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnekler, bu s\u00f6zdiziminin pratikte a\u015fa\u011f\u0131daki veri \u00e7er\u00e7evesinde nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <b><span style=\"color: #008080;\">#create data frame<\/span>\ndata &lt;- data.frame(team=c('Mavs', 'Mavs', 'Spurs', 'Spurs', 'Lakers'),\n                   points=c(14, NA, 8, 17, 22),\n                   rebounds=c(8, 5, 5, 9, 12))\n\n<span style=\"color: #008080;\">#view data frame\n<\/span>data\n\n    team points rebounds\n1 Mavs 14 8\n2 Mavs NA 5\n3 Spurs 8 5\n4 Spurs 17 9\n5 Lakers 22 12\n<\/b><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 1: Belirli bir de\u011fere e\u015fit sat\u0131rlar\u0131 sayma<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, tak\u0131m ad\u0131n\u0131n &#8220;Mavs&#8221;e e\u015fit oldu\u011fu sat\u0131r say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>sum(data$team == ' <span style=\"color: #008000;\">Mavs<\/span> ')\n\n[1] 2\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, tak\u0131m ad\u0131n\u0131n &#8220;Mavs&#8221; veya &#8220;Lakers&#8221;a e\u015fit oldu\u011fu sat\u0131r say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>sum(data$team == ' <span style=\"color: #008000;\">Mavs<\/span> ' | data$team == ' <span style=\"color: #008000;\">Lakers<\/span> ')\n\n[1] 3<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, tak\u0131m ad\u0131n\u0131n &#8220;Lakers&#8221;a e\u015fit <em>olmad\u0131\u011f\u0131<\/em> sat\u0131r say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>sum(data$team != ' <span style=\"color: #008000;\">Lakers<\/span> ')\n\n[1] 4<\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 2: belirli bir de\u011ferden b\u00fcy\u00fck veya ona e\u015fit sat\u0131rlar\u0131 sayma<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, noktalar\u0131n 10&#8217;dan b\u00fcy\u00fck oldu\u011fu sat\u0131r say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>sum(data$points &gt; 10, na.rm= <span style=\"color: #008000;\">TRUE<\/span> )\n\n[1] 3<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, geri d\u00f6nmelerin 9&#8217;dan k\u00fc\u00e7\u00fck veya ona e\u015fit oldu\u011fu sat\u0131r say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>sum(data$rebounds &lt;= 9, na.rm= <span style=\"color: #008000;\">TRUE<\/span> )\n\n[1] 4<\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 3: \u0130ki de\u011fer aras\u0131ndaki sat\u0131rlar\u0131 say\u0131n<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, noktalar\u0131n 10 ile 20 aras\u0131nda oldu\u011fu sat\u0131r say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>sum(data$points &gt; 10 &amp; data$points &lt; 20, na.rm= <span style=\"color: #008000;\">TRUE<\/span> )\n\n[1] 2<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, hemen \u00e7\u0131kmalar\u0131n 8 ile 10 aras\u0131nda oldu\u011fu sat\u0131r say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>sum(data$rebounds &gt; 8 &amp; data$rebounds &lt; 10, na.rm= <span style=\"color: #008000;\">TRUE<\/span> )\n\n[1] 1<\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h3>\n<p> <a href=\"https:\/\/statorials.org\/tr\/r-grubuna-gore-say\/\" target=\"_blank\" rel=\"noopener noreferrer\">R&#8217;de grup ba\u015f\u0131na g\u00f6zlemler nas\u0131l say\u0131l\u0131r?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/grup-ozgecmis-verileri-r\/\" target=\"_blank\" rel=\"noopener noreferrer\">R&#8217;de veriler nas\u0131l grupland\u0131r\u0131l\u0131r ve \u00f6zetlenir<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Genellikle bir R veri \u00e7er\u00e7evesindeki yaln\u0131zca belirli kriterleri kar\u015f\u0131layan sat\u0131r say\u0131s\u0131n\u0131 saymak isteyebilirsiniz. Neyse ki, a\u015fa\u011f\u0131daki temel s\u00f6zdizimini kullanarak bunu yapmak kolayd\u0131r: sum(df$column == value, na.rm= TRUE ) A\u015fa\u011f\u0131daki \u00f6rnekler, bu s\u00f6zdiziminin pratikte a\u015fa\u011f\u0131daki veri \u00e7er\u00e7evesinde nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6sterir: #create data frame data &lt;- data.frame(team=c(&#8216;Mavs&#8217;, &#8216;Mavs&#8217;, &#8216;Spurs&#8217;, &#8216;Spurs&#8217;, &#8216;Lakers&#8217;), points=c(14, NA, 8, 17, 22), rebounds=c(8, [&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-1045","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 COUNTIF i\u015flevi nas\u0131l \u00e7al\u0131\u015ft\u0131r\u0131l\u0131r - Statorials<\/title>\n<meta name=\"description\" content=\"Bir \u00f6rnek de dahil olmak \u00fczere R&#039;de COUNTIF i\u015flevinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ili\u015fkin 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\/r-ise-say\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R&#039;de COUNTIF i\u015flevi nas\u0131l \u00e7al\u0131\u015ft\u0131r\u0131l\u0131r - Statorials\" \/>\n<meta property=\"og:description\" content=\"Bir \u00f6rnek de dahil olmak \u00fczere R&#039;de COUNTIF i\u015flevinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ili\u015fkin basit bir a\u00e7\u0131klama.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/r-ise-say\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T21:02:56+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-ise-say\/\",\"url\":\"https:\/\/statorials.org\/tr\/r-ise-say\/\",\"name\":\"R&#39;de COUNTIF i\u015flevi nas\u0131l \u00e7al\u0131\u015ft\u0131r\u0131l\u0131r - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-27T21:02:56+00:00\",\"dateModified\":\"2023-07-27T21:02:56+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bir \u00f6rnek de dahil olmak \u00fczere R&#39;de COUNTIF i\u015flevinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ili\u015fkin basit bir a\u00e7\u0131klama.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/r-ise-say\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/r-ise-say\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/r-ise-say\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R&#39;de countif i\u015flevi nas\u0131l \u00e7al\u0131\u015ft\u0131r\u0131l\u0131r\"}]},{\"@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 COUNTIF i\u015flevi nas\u0131l \u00e7al\u0131\u015ft\u0131r\u0131l\u0131r - Statorials","description":"Bir \u00f6rnek de dahil olmak \u00fczere R&#39;de COUNTIF i\u015flevinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ili\u015fkin 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\/r-ise-say\/","og_locale":"tr_TR","og_type":"article","og_title":"R&#39;de COUNTIF i\u015flevi nas\u0131l \u00e7al\u0131\u015ft\u0131r\u0131l\u0131r - Statorials","og_description":"Bir \u00f6rnek de dahil olmak \u00fczere R&#39;de COUNTIF i\u015flevinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ili\u015fkin basit bir a\u00e7\u0131klama.","og_url":"https:\/\/statorials.org\/tr\/r-ise-say\/","og_site_name":"Statorials","article_published_time":"2023-07-27T21:02:56+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-ise-say\/","url":"https:\/\/statorials.org\/tr\/r-ise-say\/","name":"R&#39;de COUNTIF i\u015flevi nas\u0131l \u00e7al\u0131\u015ft\u0131r\u0131l\u0131r - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-27T21:02:56+00:00","dateModified":"2023-07-27T21:02:56+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bir \u00f6rnek de dahil olmak \u00fczere R&#39;de COUNTIF i\u015flevinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ili\u015fkin basit bir a\u00e7\u0131klama.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/r-ise-say\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/r-ise-say\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/r-ise-say\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"R&#39;de countif i\u015flevi nas\u0131l \u00e7al\u0131\u015ft\u0131r\u0131l\u0131r"}]},{"@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\/1045","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=1045"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/1045\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=1045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=1045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=1045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}