{"id":2560,"date":"2023-07-21T17:56:47","date_gmt":"2023-07-21T17:56:47","guid":{"rendered":"https:\/\/statorials.org\/tr\/rdeki-islevi-degistir\/"},"modified":"2023-07-21T17:56:47","modified_gmt":"2023-07-21T17:56:47","slug":"rdeki-islevi-degistir","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/rdeki-islevi-degistir\/","title":{"rendered":"R&#39;de replacement() i\u015flevi nas\u0131l kullan\u0131l\u0131r?"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">R&#8217;deki <strong>change()<\/strong> i\u015flevi, bir vekt\u00f6r\u00fcn belirli \u00f6\u011felerini yeni de\u011ferlerle de\u011fi\u015ftirmek i\u00e7in kullan\u0131labilir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu i\u015flev a\u015fa\u011f\u0131daki s\u00f6zdizimini kullan\u0131r:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>de\u011fi\u015ftir (x, liste, de\u011ferler)<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Alt\u0131n:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>x<\/strong> : Vekt\u00f6r ad\u0131<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>liste<\/strong> : De\u011fi\u015ftirilecek \u00f6\u011feler<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>de\u011ferler<\/strong> : De\u011fi\u015ftirme de\u011ferleri<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnekler bu fonksiyonun pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6stermektedir.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 1: Bir vekt\u00f6rdeki de\u011feri de\u011fi\u015ftirme<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, bir vekt\u00f6r\u00fcn 2. konumundaki \u00f6\u011fenin yeni 50 de\u011feriyle nas\u0131l de\u011fi\u015ftirilece\u011fini 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: #008080;\">#define vector of values\n<\/span>data &lt;- c(3, 6, 8, 12, 14, 15, 16, 19, 22)\n\n<span style=\"color: #008080;\">#define new vector with a different value in position 2\n<\/span>data_new &lt;- replace(data, 2, 50)\n\n<span style=\"color: #008080;\">#view new vector\n<\/span>data_new\n\n[1] 3 50 8 12 14 15 16 19 22\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">2. konumdaki \u00f6\u011fenin de\u011fi\u015fti\u011fini ancak orijinal vekt\u00f6rdeki di\u011fer t\u00fcm de\u011ferlerin ayn\u0131 kald\u0131\u011f\u0131n\u0131 unutmay\u0131n.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 2:<\/strong><\/span> <span style=\"color: #000000;\"><strong>Bir Vekt\u00f6rdeki Birden \u00c7ok De\u011feri De\u011fi\u015ftirme<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, bir vekt\u00f6r\u00fcn birden \u00e7ok \u00f6\u011fesinin de\u011ferlerinin yeni de\u011ferlerle nas\u0131l de\u011fi\u015ftirilece\u011fini 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: #008080;\">#define vector of values\n<\/span>data &lt;- c(2, 4, 6, 8, 10, 12, 14, 16)\n\n<span style=\"color: #008080;\">#define new vector with different values in position 1, 2, and 8\n<\/span>data_new &lt;- replace(data, c(1, 2, 8), c(50, 100, 200))\n\n<span style=\"color: #008080;\">#view new vector\n<\/span>data_new\n\n[1] 50 100 6 8 10 12 14 200\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">1, 2 ve 8. konumdaki \u00f6\u011felerin hepsinin de\u011fi\u015fti\u011fini unutmay\u0131n.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 3:<\/strong><\/span> <span style=\"color: #000000;\"><strong>Veri \u00e7er\u00e7evesindeki de\u011ferleri de\u011fi\u015ftirme<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, belirli bir ko\u015fulu kar\u015f\u0131layan bir veri \u00e7er\u00e7evesinin belirli bir s\u00fctunundaki de\u011ferlerin nas\u0131l de\u011fi\u015ftirilece\u011fini g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define data frame\n<span style=\"color: #000000;\">df &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (x=c(1, 2, 4, 4, 5, 7),\n                 y=c(6, 6, 8, 8, 10, 11))\n\n<span style=\"color: #008080;\">#view data frame\n<\/span>df\n\n  xy\n1 1 6\n2 2 6\n3 4 8\n4 4 8\n5 5 10\n6 7 11\n\n<span style=\"color: #008080;\">#replace values in column 'x' greater than 4 with a new value of 50\n<\/span>df$x &lt;- replace(df$x, df$x &gt; 4, 50)\n\n<span style=\"color: #008080;\">#view updated data frame\n<\/span>df\n\n   xy\n1 1 6\n2 2 6\n3 4 8\n4 4 8\n5 50 10\n6 50 11\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">\u201cx\u201d s\u00fctunundaki 4\u2019ten b\u00fcy\u00fck her de\u011fer, 50 de\u011feriyle de\u011fi\u015ftirilmi\u015ftir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Veri \u00e7er\u00e7evesindeki di\u011fer t\u00fcm de\u011ferler ayn\u0131 kald\u0131.<\/span><\/p>\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;deki di\u011fer yayg\u0131n i\u015flevlerin nas\u0131l kullan\u0131laca\u011f\u0131 a\u00e7\u0131klanmaktad\u0131r:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/tr\/rde-sekme-islevi\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de tabulate() i\u015flevi nas\u0131l kullan\u0131l\u0131r?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/rde-bolme-islevi\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de split() i\u015flevi nas\u0131l kullan\u0131l\u0131r?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/rde-eslestirme-islevi\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de match() i\u015flevi nas\u0131l kullan\u0131l\u0131r?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/rde-islevi-cogalt\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de replikasyon () i\u015flevi nas\u0131l kullan\u0131l\u0131r?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>R&#8217;deki change() i\u015flevi, bir vekt\u00f6r\u00fcn belirli \u00f6\u011felerini yeni de\u011ferlerle de\u011fi\u015ftirmek i\u00e7in kullan\u0131labilir. Bu i\u015flev a\u015fa\u011f\u0131daki s\u00f6zdizimini kullan\u0131r: de\u011fi\u015ftir (x, liste, de\u011ferler) Alt\u0131n: x : Vekt\u00f6r ad\u0131 liste : De\u011fi\u015ftirilecek \u00f6\u011feler de\u011ferler : De\u011fi\u015ftirme de\u011ferleri A\u015fa\u011f\u0131daki \u00f6rnekler bu fonksiyonun pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6stermektedir. \u00d6rnek 1: Bir vekt\u00f6rdeki de\u011feri de\u011fi\u015ftirme A\u015fa\u011f\u0131daki kod, bir vekt\u00f6r\u00fcn 2. konumundaki \u00f6\u011fenin [&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-2560","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;ta replacement() i\u015flevi nas\u0131l kullan\u0131l\u0131r?<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde, R&#039;de change() i\u015flevinin nas\u0131l kullan\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\/rdeki-islevi-degistir\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R - Statorials&#039;ta replacement() i\u015flevi nas\u0131l kullan\u0131l\u0131r?\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde, R&#039;de change() i\u015flevinin nas\u0131l kullan\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/rdeki-islevi-degistir\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-21T17:56:47+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\/rdeki-islevi-degistir\/\",\"url\":\"https:\/\/statorials.org\/tr\/rdeki-islevi-degistir\/\",\"name\":\"R - Statorials&#39;ta replacement() i\u015flevi nas\u0131l kullan\u0131l\u0131r?\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-21T17:56:47+00:00\",\"dateModified\":\"2023-07-21T17:56:47+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde, R&#39;de change() i\u015flevinin nas\u0131l kullan\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/rdeki-islevi-degistir\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/rdeki-islevi-degistir\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/rdeki-islevi-degistir\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R&#39;de replacement() i\u015flevi nas\u0131l kullan\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 - Statorials&#39;ta replacement() i\u015flevi nas\u0131l kullan\u0131l\u0131r?","description":"Bu e\u011fitimde, R&#39;de change() i\u015flevinin nas\u0131l kullan\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\/rdeki-islevi-degistir\/","og_locale":"tr_TR","og_type":"article","og_title":"R - Statorials&#39;ta replacement() i\u015flevi nas\u0131l kullan\u0131l\u0131r?","og_description":"Bu e\u011fitimde, R&#39;de change() i\u015flevinin nas\u0131l kullan\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/rdeki-islevi-degistir\/","og_site_name":"Statorials","article_published_time":"2023-07-21T17:56:47+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\/rdeki-islevi-degistir\/","url":"https:\/\/statorials.org\/tr\/rdeki-islevi-degistir\/","name":"R - Statorials&#39;ta replacement() i\u015flevi nas\u0131l kullan\u0131l\u0131r?","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-21T17:56:47+00:00","dateModified":"2023-07-21T17:56:47+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde, R&#39;de change() i\u015flevinin nas\u0131l kullan\u0131laca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/rdeki-islevi-degistir\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/rdeki-islevi-degistir\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/rdeki-islevi-degistir\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"R&#39;de replacement() i\u015flevi nas\u0131l kullan\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\/2560","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=2560"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/2560\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=2560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=2560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=2560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}