{"id":2441,"date":"2023-07-22T06:40:55","date_gmt":"2023-07-22T06:40:55","guid":{"rendered":"https:\/\/statorials.org\/tr\/r-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/"},"modified":"2023-07-22T06:40:55","modified_gmt":"2023-07-22T06:40:55","slug":"r-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/r-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/","title":{"rendered":"C: veri \u00e7er\u00e7evesindeki de\u011ferler ko\u015fullu olarak nas\u0131l de\u011fi\u015ftirilir?"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><span style=\"color: #000000;\">Bir veri \u00e7er\u00e7evesindeki de\u011ferleri ko\u015fullu olarak de\u011fi\u015ftirmek i\u00e7in a\u015fa\u011f\u0131daki y\u00f6ntemlerden birini kullanabilirsiniz:<\/span><\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 1: Veri \u00e7er\u00e7evesinin tamam\u0131ndaki de\u011ferleri de\u011fi\u015ftirin<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#replace all values in data frame equal to 30 with 0<\/span>\ndf[df <span style=\"color: #800080;\">==<\/span> <span style=\"color: #008000;\">30<\/span> ] &lt;- 0\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 2: Belirli bir s\u00fctundaki de\u011ferleri de\u011fi\u015ftirin<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#replace values equal to 30 in 'col1' with 0<\/span>\ndf$col1[df$col1 <span style=\"color: #800080;\">==<\/span> <span style=\"color: #008000;\">30<\/span> ] &lt;- 0\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 3: Belirli bir s\u00fctundaki de\u011ferleri ba\u015fka bir s\u00fctuna g\u00f6re de\u011fi\u015ftirin<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#replace values in col2 with 0 based on rows in col1 equal to 30<\/span>\ndf$col2[df$col1 <span style=\"color: #800080;\">==<\/span> <span style=\"color: #008000;\">30<\/span> ] &lt;- 0 \n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnekler, her y\u00f6ntemin pratikte a\u015fa\u011f\u0131daki veri \u00e7er\u00e7evesiyle 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 style=\"color: #000000;\">df &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (team=c('A', 'A', 'B', 'B', 'B'),\n                 points=c(99, 90, 90, 88, 88),\n                 assists=c(33, 28, 31, 30, 34),\n                 rebounds=c(30, 30, 24, 24, 28))\n\n<span style=\"color: #008080;\">#view data frame\n<\/span>df\n\n  team points assists rebounds\n1 A 99 33 30\n2 A 90 28 30\n3 B 90 31 24\n4 B 88 30 24\n5 B 88 34 28\n<\/span><\/span><\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 1: Veri \u00e7er\u00e7evesinin tamam\u0131ndaki de\u011ferleri de\u011fi\u015ftirin<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, veri \u00e7er\u00e7evesindeki 30&#8217;a e\u015fit t\u00fcm de\u011ferlerin 0 ile nas\u0131l de\u011fi\u015ftirilece\u011fini g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#replace all values in data frame equal to 30 with 0<\/span>\ndf[df <span style=\"color: #800080;\">==<\/span> <span style=\"color: #008000;\">30<\/span> ] &lt;- 0\n\n<span style=\"color: #008080;\">#view updated data frame<\/span>\ndf\n  team points assists rebounds\n1 A 99 33 0\n2 A 90 28 0\n3 B 90 31 24\n4 B 88 0 24\n5 B 88 34 28\n<\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 2: Belirli bir s\u00fctundaki de\u011ferleri de\u011fi\u015ftirin<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, &#8220;puan&#8221; s\u00fctunundaki 90&#8217;a e\u015fit t\u00fcm de\u011ferlerin 0 ile nas\u0131l de\u011fi\u015ftirilece\u011fini g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#replace all values equal to 90 in 'points' column with 0\n<\/span>df$points[df$points <span style=\"color: #800080;\">==<\/span> <span style=\"color: #008000;\">90<\/span> ] &lt;- 0\n\n<span style=\"color: #008080;\">#view updated data frame\n<\/span>df\n\n  team points assists rebounds\n1 A 99 33 30\n2 A 0 28 30\n3 B 0 31 24\n4 B 88 30 24\n5 B 88 34 28\n<\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>Y\u00f6ntem 3: Belirli bir s\u00fctundaki de\u011ferleri ba\u015fka bir s\u00fctuna g\u00f6re de\u011fi\u015ftirin<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, &#8220;puan&#8221; s\u00fctunundaki de\u011ferlerin 0 ile nas\u0131l de\u011fi\u015ftirilece\u011fini g\u00f6sterir; burada &#8220;tak\u0131m&#8221; s\u00fctunundaki de\u011fer &#8220;B&#8221;ye e\u015fittir.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#replace all values equal to 90 in 'points' column with 0\n<\/span>df$points[df$team <span style=\"color: #800080;\">==<\/span> ' <span style=\"color: #ff0000;\">B<\/span> '] &lt;- 0\n\n<span style=\"color: #008080;\">#view updated data frame\n<\/span>df\n\n  team points assists rebounds\n1 A 99 33 30\n2 A 90 28 30\n3 B 0 31 24\n4 B 0 30 24\n5 B 0 34 28<\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki e\u011fitimlerde R&#8217;de di\u011fer yayg\u0131n i\u015flemlerin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r:<\/span><\/p>\n<p><a href=\"https:\/\/statorials.org\/tr\/r-birden-fazla-sutunu-birlestir\/\" target=\"_blank\" rel=\"noopener\">C: Birden \u00e7ok s\u00fctuna dayal\u0131 veri \u00e7er\u00e7eveleri nas\u0131l birle\u015ftirilir?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/r-diger-sutunlara-dayali-olarak-bir-veri-cercevesine-bir-sutun-eklemek\/\" target=\"_blank\" rel=\"noopener\">C: Di\u011fer s\u00fctunlara dayal\u0131 olarak veri \u00e7er\u00e7evesine s\u00fctun nas\u0131l eklenir?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bir veri \u00e7er\u00e7evesindeki de\u011ferleri ko\u015fullu olarak de\u011fi\u015ftirmek i\u00e7in a\u015fa\u011f\u0131daki y\u00f6ntemlerden birini kullanabilirsiniz: Y\u00f6ntem 1: Veri \u00e7er\u00e7evesinin tamam\u0131ndaki de\u011ferleri de\u011fi\u015ftirin #replace all values in data frame equal to 30 with 0 df[df == 30 ] &lt;- 0 Y\u00f6ntem 2: Belirli bir s\u00fctundaki de\u011ferleri de\u011fi\u015ftirin #replace values equal to 30 in &#8216;col1&#8217; with 0 df$col1[df$col1 == 30 [&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-2441","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>A: Bir veri \u00e7er\u00e7evesindeki de\u011ferler ko\u015fullu olarak nas\u0131l de\u011fi\u015ftirilir - Statoryaller<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde, R&#039;deki bir veri \u00e7er\u00e7evesindeki de\u011ferlerin belirli ko\u015fullara g\u00f6re nas\u0131l de\u011fi\u015ftirilece\u011fi \u00e7e\u015fitli \u00f6rnekler de dahil olmak \u00fczere 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-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A: Bir veri \u00e7er\u00e7evesindeki de\u011ferler ko\u015fullu olarak nas\u0131l de\u011fi\u015ftirilir - Statoryaller\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde, R&#039;deki bir veri \u00e7er\u00e7evesindeki de\u011ferlerin belirli ko\u015fullara g\u00f6re nas\u0131l de\u011fi\u015ftirilece\u011fi \u00e7e\u015fitli \u00f6rnekler de dahil olmak \u00fczere a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/r-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-22T06:40:55+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-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/\",\"url\":\"https:\/\/statorials.org\/tr\/r-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/\",\"name\":\"A: Bir veri \u00e7er\u00e7evesindeki de\u011ferler ko\u015fullu olarak nas\u0131l de\u011fi\u015ftirilir - Statoryaller\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-22T06:40:55+00:00\",\"dateModified\":\"2023-07-22T06:40:55+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde, R&#39;deki bir veri \u00e7er\u00e7evesindeki de\u011ferlerin belirli ko\u015fullara g\u00f6re nas\u0131l de\u011fi\u015ftirilece\u011fi \u00e7e\u015fitli \u00f6rnekler de dahil olmak \u00fczere a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/r-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/r-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/r-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C: veri \u00e7er\u00e7evesindeki de\u011ferler ko\u015fullu olarak nas\u0131l de\u011fi\u015ftirilir?\"}]},{\"@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":"A: Bir veri \u00e7er\u00e7evesindeki de\u011ferler ko\u015fullu olarak nas\u0131l de\u011fi\u015ftirilir - Statoryaller","description":"Bu e\u011fitimde, R&#39;deki bir veri \u00e7er\u00e7evesindeki de\u011ferlerin belirli ko\u015fullara g\u00f6re nas\u0131l de\u011fi\u015ftirilece\u011fi \u00e7e\u015fitli \u00f6rnekler de dahil olmak \u00fczere 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-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/","og_locale":"tr_TR","og_type":"article","og_title":"A: Bir veri \u00e7er\u00e7evesindeki de\u011ferler ko\u015fullu olarak nas\u0131l de\u011fi\u015ftirilir - Statoryaller","og_description":"Bu e\u011fitimde, R&#39;deki bir veri \u00e7er\u00e7evesindeki de\u011ferlerin belirli ko\u015fullara g\u00f6re nas\u0131l de\u011fi\u015ftirilece\u011fi \u00e7e\u015fitli \u00f6rnekler de dahil olmak \u00fczere a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/r-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/","og_site_name":"Statorials","article_published_time":"2023-07-22T06:40:55+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-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/","url":"https:\/\/statorials.org\/tr\/r-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/","name":"A: Bir veri \u00e7er\u00e7evesindeki de\u011ferler ko\u015fullu olarak nas\u0131l de\u011fi\u015ftirilir - Statoryaller","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-22T06:40:55+00:00","dateModified":"2023-07-22T06:40:55+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde, R&#39;deki bir veri \u00e7er\u00e7evesindeki de\u011ferlerin belirli ko\u015fullara g\u00f6re nas\u0131l de\u011fi\u015ftirilece\u011fi \u00e7e\u015fitli \u00f6rnekler de dahil olmak \u00fczere a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/r-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/r-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/r-veri-cercevesindeki-degerleri-kosullu-olarak-degistirin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"C: veri \u00e7er\u00e7evesindeki de\u011ferler ko\u015fullu olarak nas\u0131l de\u011fi\u015ftirilir?"}]},{"@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\/2441","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=2441"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/2441\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=2441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=2441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=2441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}