{"id":3620,"date":"2023-07-16T12:21:20","date_gmt":"2023-07-16T12:21:20","guid":{"rendered":"https:\/\/statorials.org\/tr\/r-dizeyi-ve-degiskeni-yazdir\/"},"modified":"2023-07-16T12:21:20","modified_gmt":"2023-07-16T12:21:20","slug":"r-dizeyi-ve-degiskeni-yazdir","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/r-dizeyi-ve-degiskeni-yazdir\/","title":{"rendered":"R&#39;de bir dize ve bir de\u011fi\u015fken ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131l\u0131r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Genellikle R&#8217;de ayn\u0131 sat\u0131ra bir dize ve bir de\u011fi\u015fken yazd\u0131rmak isteyebilirsiniz.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Neyse ki, <strong>print()<\/strong> ve <strong>Paste0()<\/strong> i\u015flevlerini kullanarak bunu yapmak kolayd\u0131r.<\/span><\/p>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnek bunun nas\u0131l yap\u0131laca\u011f\u0131n\u0131 g\u00f6sterir.<\/span><\/p>\n<h2> <strong><span style=\"color: #000000;\">\u00d6rnek: R&#8217;de Ayn\u0131 Sat\u0131rda Bir Dize ve Bir De\u011fi\u015fken Yazd\u0131rma<\/span><\/strong><\/h2>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, R&#8217;de bir dizenin ve de\u011fi\u015fkenin ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define variable\n<\/span>my_variable &lt;- 540.38\n\n<span style=\"color: #008080;\">#print string and variable on same line\n<\/span><span style=\"color: #008000;\">print<\/span> ( <span style=\"color: #008000;\">paste0<\/span> (\" <span style=\"color: #ff0000;\">The value of my variable is<\/span> \", my_variable))\n\n[1] \"The value of my variable is 540.38\"\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Birden fazla nesneyi tek bir dizede birle\u015ftirmek i\u00e7in R&#8217;deki <strong>Paste()<\/strong> ve <strong>Paste0()<\/strong> i\u015flevlerini kullanabilece\u011finizi unutmay\u0131n.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Paste()<\/strong> i\u015flevi, varsay\u0131lan ay\u0131r\u0131c\u0131 olarak <strong>bir bo\u015fluk<\/strong> kullanarak dizeleri birle\u015ftirir.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Paste0()<\/strong> i\u015flevi, varsay\u0131lan olarak ay\u0131r\u0131c\u0131 olarak <strong>bo\u015fluk<\/strong> kullanmadan dizeleri birle\u015ftirir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Yani bunun yerine <strong>Paste()<\/strong> kullansayd\u0131k son dizede fazladan bir bo\u015fluk olurdu:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#define variable\n<span style=\"color: #000000;\">my_variable &lt;- 540.38<\/span>\n\n#print string and variable on same line<\/span>\n<span style=\"color: #008000;\">print<\/span> ( <span style=\"color: #008000;\">paste<\/span> (\" <span style=\"color: #ff0000;\">The value of my variable is<\/span> \", my_variable))\n\n[1] \"The value of my variable is 540.38\"\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Son dizede fazladan bo\u015fluk oldu\u011funa dikkat edin.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Ayr\u0131ca, birden fazla de\u011fi\u015fkeni ayn\u0131 sat\u0131ra yazd\u0131rmak i\u00e7in benzer s\u00f6zdizimini kullanabilece\u011fimizi de unutmay\u0131n:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#define variables\n<span style=\"color: #000000;\">var1 &lt;- 540.38\nvar2 &lt;- 122\n<\/span>\n#print string and multiple variables on same line<\/span>\n<span style=\"color: #008000;\">print<\/span> ( <span style=\"color: #008000;\">paste0<\/span> (\" <span style=\"color: #ff0000;\">The first variable is<\/span> \", var1, \" <span style=\"color: #ff0000;\">and the second is<\/span> \", var2))\n\n[1] \"The first variable is 540.38 and the second is 122\"\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Dizenin ve her iki de\u011fi\u015fkenin de ayn\u0131 sat\u0131ra yazd\u0131r\u0131ld\u0131\u011f\u0131n\u0131 unutmay\u0131n.<\/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-tabloyu-yazdir\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de diziler nas\u0131l yazd\u0131r\u0131l\u0131r<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/tibble-rnin-tum-satirlarini-yazdir\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de bir Tibble&#8217;\u0131n t\u00fcm sat\u0131rlar\u0131 nas\u0131l yazd\u0131r\u0131l\u0131r<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/sprintf-r-islevi\/\" target=\"_blank\" rel=\"noopener\">Bi\u00e7imlendirilmi\u015f dizeleri yazd\u0131rmak i\u00e7in R&#8217;de sprintf i\u015flevi nas\u0131l kullan\u0131l\u0131r?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Genellikle R&#8217;de ayn\u0131 sat\u0131ra bir dize ve bir de\u011fi\u015fken yazd\u0131rmak isteyebilirsiniz. Neyse ki, print() ve Paste0() i\u015flevlerini kullanarak bunu yapmak kolayd\u0131r. A\u015fa\u011f\u0131daki \u00f6rnek bunun nas\u0131l yap\u0131laca\u011f\u0131n\u0131 g\u00f6sterir. \u00d6rnek: R&#8217;de Ayn\u0131 Sat\u0131rda Bir Dize ve Bir De\u011fi\u015fken Yazd\u0131rma A\u015fa\u011f\u0131daki kod, R&#8217;de bir dizenin ve de\u011fi\u015fkenin ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131laca\u011f\u0131n\u0131 g\u00f6sterir: #define variable my_variable &lt;- 540.38 #print [&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-3620","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;de bir dize ve bir de\u011fi\u015fken ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131l\u0131r<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde R&#039;de bir dizenin ve bir de\u011fi\u015fkenin ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131laca\u011f\u0131 \u00f6rneklerle 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-dizeyi-ve-degiskeni-yazdir\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R - Statorials&#039;de bir dize ve bir de\u011fi\u015fken ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131l\u0131r\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde R&#039;de bir dizenin ve bir de\u011fi\u015fkenin ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131laca\u011f\u0131 \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/r-dizeyi-ve-degiskeni-yazdir\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-16T12:21:20+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-dizeyi-ve-degiskeni-yazdir\/\",\"url\":\"https:\/\/statorials.org\/tr\/r-dizeyi-ve-degiskeni-yazdir\/\",\"name\":\"R - Statorials&#39;de bir dize ve bir de\u011fi\u015fken ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131l\u0131r\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-16T12:21:20+00:00\",\"dateModified\":\"2023-07-16T12:21:20+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde R&#39;de bir dizenin ve bir de\u011fi\u015fkenin ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131laca\u011f\u0131 \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/r-dizeyi-ve-degiskeni-yazdir\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/r-dizeyi-ve-degiskeni-yazdir\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/r-dizeyi-ve-degiskeni-yazdir\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R&#39;de bir dize ve bir de\u011fi\u015fken ayn\u0131 sat\u0131ra nas\u0131l yazd\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 - Statorials&#39;de bir dize ve bir de\u011fi\u015fken ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131l\u0131r","description":"Bu e\u011fitimde R&#39;de bir dizenin ve bir de\u011fi\u015fkenin ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131laca\u011f\u0131 \u00f6rneklerle 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-dizeyi-ve-degiskeni-yazdir\/","og_locale":"tr_TR","og_type":"article","og_title":"R - Statorials&#39;de bir dize ve bir de\u011fi\u015fken ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131l\u0131r","og_description":"Bu e\u011fitimde R&#39;de bir dizenin ve bir de\u011fi\u015fkenin ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131laca\u011f\u0131 \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/r-dizeyi-ve-degiskeni-yazdir\/","og_site_name":"Statorials","article_published_time":"2023-07-16T12:21:20+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-dizeyi-ve-degiskeni-yazdir\/","url":"https:\/\/statorials.org\/tr\/r-dizeyi-ve-degiskeni-yazdir\/","name":"R - Statorials&#39;de bir dize ve bir de\u011fi\u015fken ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131l\u0131r","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-16T12:21:20+00:00","dateModified":"2023-07-16T12:21:20+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde R&#39;de bir dizenin ve bir de\u011fi\u015fkenin ayn\u0131 sat\u0131ra nas\u0131l yazd\u0131r\u0131laca\u011f\u0131 \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/r-dizeyi-ve-degiskeni-yazdir\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/r-dizeyi-ve-degiskeni-yazdir\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/r-dizeyi-ve-degiskeni-yazdir\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"R&#39;de bir dize ve bir de\u011fi\u015fken ayn\u0131 sat\u0131ra nas\u0131l yazd\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\/3620","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=3620"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/3620\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=3620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=3620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=3620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}