{"id":3480,"date":"2023-07-17T06:35:01","date_gmt":"2023-07-17T06:35:01","guid":{"rendered":"https:\/\/statorials.org\/tr\/r-kosulu-iceren-sutundaki-degerleri-sayar\/"},"modified":"2023-07-17T06:35:01","modified_gmt":"2023-07-17T06:35:01","slug":"r-kosulu-iceren-sutundaki-degerleri-sayar","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/r-kosulu-iceren-sutundaki-degerleri-sayar\/","title":{"rendered":"C: ko\u015fullu bir s\u00fctundaki de\u011ferler nas\u0131l say\u0131l\u0131r?"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Belirli bir ko\u015fula sahip R&#8217;deki bir veri \u00e7er\u00e7evesinin bir s\u00fctunundaki de\u011ferlerin say\u0131s\u0131n\u0131 saymak i\u00e7in a\u015fa\u011f\u0131daki y\u00f6ntemleri kullanabilirsiniz:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 1: Ko\u015fullu bir s\u00fctundaki de\u011ferleri say\u0131n<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>nrow(df[df$column1 == ' <span style=\"color: #ff0000;\">value1<\/span> ', ])\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 2: Ko\u015fullu birden \u00e7ok s\u00fctundaki de\u011ferleri say\u0131n<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>nrow(df[df$column1 == ' <span style=\"color: #ff0000;\">value1<\/span> ' <span style=\"color: #800080;\">&amp;<\/span> df$column2 == ' <span style=\"color: #ff0000;\">value2<\/span> ', ])<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnekler, R&#8217;deki a\u015fa\u011f\u0131daki veri \u00e7er\u00e7evesiyle her y\u00f6ntemin pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><b><span style=\"color: #008080;\">#create data frame\n<\/span>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, 12, 3, 14, 22, 15, 17, 17))\n\n<span style=\"color: #008080;\">#view data frame\n<\/span>df\n\n  team position points\n1 AG 10\n2 AG 12\n3 AF 3\n4 AF 14\n5 BG 22\n6 BG 15\n7 BF 17\n8 BF 17\n<\/b><\/span><\/pre>\n<h2> <span style=\"color: #000000;\"><strong>\u00d6rnek 1: Ko\u015fullu bir s\u00fctundaki de\u011ferleri say\u0131n<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, <strong>tak\u0131m<\/strong> s\u00fctunundaki de\u011ferin &#8216; <strong>A&#8217;ya<\/strong> e\u015fit oldu\u011fu de\u011ferlerin 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><span style=\"color: #008080;\">#count number of rows where team is equal to 'B'\n<span style=\"color: #000000;\">nrow(df[df$team == ' <span style=\"color: #ff0000;\">B<\/span> ', ])<\/span>\n\n<span style=\"color: #000000;\">[1] 4<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Tak\u0131m<\/strong> s\u00fctununda de\u011ferin \u201cB\u201dye e\u015fit oldu\u011fu <strong>4<\/strong> de\u011ferin bulundu\u011funu g\u00f6rebiliriz.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\u00d6rnek 2: Ko\u015fullu birden \u00e7ok s\u00fctundaki de\u011ferleri say\u0131n<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, <strong>tak\u0131m<\/strong> s\u00fctununun &#8220;B&#8221;ye ve <strong>konum<\/strong> s\u00fctununun &#8220;F&#8221;ye e\u015fit oldu\u011fu veri \u00e7er\u00e7evesindeki 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><span style=\"color: #008080;\">#count number of rows where team is equal to 'B' and position is equal to 'F'\n<span style=\"color: #000000;\">nrow(df[df$team == ' <span style=\"color: #ff0000;\">B<\/span> ' <span style=\"color: #800080;\">&amp;<\/span> df$position == ' <span style=\"color: #ff0000;\">F<\/span> ', ])\n<\/span>\n<span style=\"color: #000000;\">[1] 2<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Veri \u00e7er\u00e7evesinde bu ko\u015fullar\u0131n her ikisini de kar\u015f\u0131layan <strong>2<\/strong> sat\u0131r\u0131n oldu\u011funu g\u00f6rebiliriz.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0130stenilen say\u0131da ko\u015fulu kar\u015f\u0131layan sat\u0131r say\u0131s\u0131n\u0131 saymak i\u00e7in benzer s\u00f6z dizimini kullanabiliriz.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u00d6rne\u011fin a\u015fa\u011f\u0131daki kod, \u00fc\u00e7 ko\u015fulu kar\u015f\u0131layan sat\u0131r say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>tak\u0131m<\/strong> &#8216;B&#8217;ye e\u015fittir<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>konum<\/strong> &#8216;G&#8217;ye e\u015fittir<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>puanlar<\/strong> 20&#8217;den b\u00fcy\u00fck<\/span><\/li>\n<\/ul>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#count rows where team is 'B' and position is 'G' and points &gt; 20<\/span>\n<span style=\"color: #008080;\"><span style=\"color: #000000;\">nrow(df[df$team == ' <span style=\"color: #ff0000;\">B<\/span> ' <span style=\"color: #800080;\">&amp;<\/span> df$position == ' <span style=\"color: #ff0000;\">G<\/span> ' <span style=\"color: #800080;\">&amp;<\/span> df$points &gt; <span style=\"color: #008000;\">20<\/span> , ])\n<\/span><\/span>\n[1] 1<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Veri \u00e7er\u00e7evesindeki <strong>yaln\u0131zca bir<\/strong> sat\u0131r\u0131n bu \u00fc\u00e7 ko\u015fulu kar\u015f\u0131lad\u0131\u011f\u0131n\u0131 g\u00f6rebiliriz.<\/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\/rdeki-satir-sayisi\/\" target=\"_blank\" rel=\"noopener\">R&#8217;deki sat\u0131r say\u0131s\u0131 nas\u0131l say\u0131l\u0131r?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/r-tek-satir\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de bir veri \u00e7er\u00e7evesindeki tek sat\u0131rlar nas\u0131l se\u00e7ilir<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Belirli bir ko\u015fula sahip R&#8217;deki bir veri \u00e7er\u00e7evesinin bir s\u00fctunundaki de\u011ferlerin say\u0131s\u0131n\u0131 saymak i\u00e7in a\u015fa\u011f\u0131daki y\u00f6ntemleri kullanabilirsiniz: Y\u00f6ntem 1: Ko\u015fullu bir s\u00fctundaki de\u011ferleri say\u0131n nrow(df[df$column1 == &#8216; value1 &#8216;, ]) Y\u00f6ntem 2: Ko\u015fullu birden \u00e7ok s\u00fctundaki de\u011ferleri say\u0131n nrow(df[df$column1 == &#8216; value1 &#8216; &amp; df$column2 == &#8216; value2 &#8216;, ]) A\u015fa\u011f\u0131daki \u00f6rnekler, R&#8217;deki a\u015fa\u011f\u0131daki veri [&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-3480","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>C: Ko\u015fullu bir s\u00fctundaki de\u011ferler nas\u0131l say\u0131l\u0131r - Statorials<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde, R&#039;deki ko\u015fula dayal\u0131 olarak bir s\u00fctundaki de\u011ferlerin say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131 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-kosulu-iceren-sutundaki-degerleri-sayar\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C: Ko\u015fullu bir s\u00fctundaki de\u011ferler nas\u0131l say\u0131l\u0131r - Statorials\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde, R&#039;deki ko\u015fula dayal\u0131 olarak bir s\u00fctundaki de\u011ferlerin say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/r-kosulu-iceren-sutundaki-degerleri-sayar\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-17T06:35:01+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-kosulu-iceren-sutundaki-degerleri-sayar\/\",\"url\":\"https:\/\/statorials.org\/tr\/r-kosulu-iceren-sutundaki-degerleri-sayar\/\",\"name\":\"C: Ko\u015fullu bir s\u00fctundaki de\u011ferler nas\u0131l say\u0131l\u0131r - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-17T06:35:01+00:00\",\"dateModified\":\"2023-07-17T06:35:01+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde, R&#39;deki ko\u015fula dayal\u0131 olarak bir s\u00fctundaki de\u011ferlerin say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/r-kosulu-iceren-sutundaki-degerleri-sayar\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/r-kosulu-iceren-sutundaki-degerleri-sayar\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/r-kosulu-iceren-sutundaki-degerleri-sayar\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C: ko\u015fullu bir s\u00fctundaki de\u011ferler nas\u0131l say\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":"C: Ko\u015fullu bir s\u00fctundaki de\u011ferler nas\u0131l say\u0131l\u0131r - Statorials","description":"Bu e\u011fitimde, R&#39;deki ko\u015fula dayal\u0131 olarak bir s\u00fctundaki de\u011ferlerin say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131 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-kosulu-iceren-sutundaki-degerleri-sayar\/","og_locale":"tr_TR","og_type":"article","og_title":"C: Ko\u015fullu bir s\u00fctundaki de\u011ferler nas\u0131l say\u0131l\u0131r - Statorials","og_description":"Bu e\u011fitimde, R&#39;deki ko\u015fula dayal\u0131 olarak bir s\u00fctundaki de\u011ferlerin say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/r-kosulu-iceren-sutundaki-degerleri-sayar\/","og_site_name":"Statorials","article_published_time":"2023-07-17T06:35:01+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-kosulu-iceren-sutundaki-degerleri-sayar\/","url":"https:\/\/statorials.org\/tr\/r-kosulu-iceren-sutundaki-degerleri-sayar\/","name":"C: Ko\u015fullu bir s\u00fctundaki de\u011ferler nas\u0131l say\u0131l\u0131r - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-17T06:35:01+00:00","dateModified":"2023-07-17T06:35:01+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde, R&#39;deki ko\u015fula dayal\u0131 olarak bir s\u00fctundaki de\u011ferlerin say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/r-kosulu-iceren-sutundaki-degerleri-sayar\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/r-kosulu-iceren-sutundaki-degerleri-sayar\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/r-kosulu-iceren-sutundaki-degerleri-sayar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"C: ko\u015fullu bir s\u00fctundaki de\u011ferler nas\u0131l say\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\/3480","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=3480"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/3480\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=3480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=3480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=3480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}