{"id":1971,"date":"2023-07-24T06:24:51","date_gmt":"2023-07-24T06:24:51","guid":{"rendered":"https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/"},"modified":"2023-07-24T06:24:51","modified_gmt":"2023-07-24T06:24:51","slug":"rde-bos-bir-matris-olusturun","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/","title":{"rendered":"R&#39;de bo\u015f matris nas\u0131l olu\u015fturulur (\u00f6rneklerle)"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">R&#8217;de belirli bir boyutta bo\u015f bir matris olu\u015fturmak i\u00e7in a\u015fa\u011f\u0131daki s\u00f6zdizimini kullanabilirsiniz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create empty matrix with 10 rows and 3 columns<\/span>\nempty_matrix &lt;- matrix(, nrow= <span style=\"color: #008000;\">10<\/span> , ncol= <span style=\"color: #008000;\">3<\/span> )\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnekler bu s\u00f6zdiziminin pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6stermektedir.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 1: Belirli bir boyutta bo\u015f bir matris olu\u015fturun<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, R&#8217;de belirli bir boyutta bo\u015f bir matrisin nas\u0131l olu\u015fturulaca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create empty matrix with 10 rows and 3 columns\n<\/span>empty_matrix &lt;- matrix(, nrow= <span style=\"color: #008000;\">10<\/span> , ncol= <span style=\"color: #008000;\">3<\/span> )\n\n<span style=\"color: #008080;\">#view empty matrix\n<\/span>empty_matrix\n\n      [,1] [,2] [,3]\n [1,] NA NA NA\n [2,] NA NA NA\n [3,] NA NA NA\n [4,] NA NA NA\n [5,] NA NA NA\n [6,] NA NA NA\n [7,] NA NA NA\n [8,] NA NA NA\n [9,] NA NA NA\n[10,] NA NA NA\n\n<span style=\"color: #008080;\">#view class<\/span>\nclass(empty_matrix)\n\n[1] \"matrix\" \"array\" \n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Sonu\u00e7, matrisin her bir \u00f6\u011fesinin bo\u015f oldu\u011fu 10 sat\u0131r ve 3 s\u00fctundan olu\u015fan bir matristir.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 2: Bilinmeyen boyutta bir matris olu\u015fturun<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\">Matrisin son boyutunun ne olaca\u011f\u0131n\u0131 \u00f6nceden bilmiyorsan\u0131z, matris s\u00fctunlar\u0131 i\u00e7in verileri olu\u015fturmak ve <a href=\"https:\/\/statorials.org\/tr\/rye-baglan\/\" target=\"_blank\" rel=\"noopener\">cbind()<\/a> i\u015flevini kullanarak her s\u00fctunu birbirine ba\u011flamak i\u00e7in a\u015fa\u011f\u0131daki kodu kullanabilirsiniz:<\/span><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create empty list\n<\/span>my_list &lt;-list()\n\n<span style=\"color: #008080;\">#add data using for loop\n<\/span><span style=\"color: #008000;\">for<\/span> (i <span style=\"color: #008000;\">in<\/span> 1:4) {\n    my_list[[i]] &lt;- rnorm(10)\n}\n\n<span style=\"color: #008080;\">#column bind values into a matrix\n<\/span>my_matrix = do. <span style=\"color: #3366ff;\">call<\/span> (cbind, my_list)\n\n<span style=\"color: #008080;\">#view final matrix\n<\/span>my_matrix\n\n            [,1] [,2] [,3] [,4]\n [1,] 1.3064332 1.18175760 2.1603867 1.2378847\n [2,] 0.8618439 0.66663694 0.1113606 0.2062029\n [3,] -0.4689356 -0.03200797 -1.3872632 1.6531437\n [4,] -0.4664767 -0.79285400 0.3972758 0.1632975\n [5,] 0.5880580 1.05795303 -0.5655543 -0.3557376\n [6,] 0.5412100 -0.32070294 -0.3687303 -1.1778959\n [7,] 0.5073627 -0.24925226 1.0031305 0.6336998\n [8,] 0.8047177 0.10968558 0.3225197 1.6776955\n [9,] 1.5755134 1.40435730 1.8360239 0.5612274\n[10,] -0.6430913 0.01173386 0.3181037 -0.8414270\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Sonu\u00e7 10 sat\u0131r ve 4 s\u00fctundan olu\u015fan bir matristir.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnekler R&#8217;de di\u011fer bo\u015f nesnelerin nas\u0131l olu\u015fturulaca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/tr\/rde-bos-bir-veri-cercevesi-olusturun\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de bo\u015f bir veri \u00e7er\u00e7evesi nas\u0131l olu\u015fturulur<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/rde-bos-bir-liste-olustur\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de bo\u015f bir liste nas\u0131l olu\u015fturulur<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/rde-bos-bir-vektor-yarat\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de bo\u015f bir vekt\u00f6r nas\u0131l olu\u015fturulur<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>R&#8217;de belirli bir boyutta bo\u015f bir matris olu\u015fturmak i\u00e7in a\u015fa\u011f\u0131daki s\u00f6zdizimini kullanabilirsiniz: #create empty matrix with 10 rows and 3 columns empty_matrix &lt;- matrix(, nrow= 10 , ncol= 3 ) A\u015fa\u011f\u0131daki \u00f6rnekler bu s\u00f6zdiziminin pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6stermektedir. \u00d6rnek 1: Belirli bir boyutta bo\u015f bir matris olu\u015fturun A\u015fa\u011f\u0131daki kod, R&#8217;de belirli bir boyutta bo\u015f bir [&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-1971","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 Bo\u015f Matris Nas\u0131l Olu\u015fturulur (\u00d6rneklerle) \u2013 Statorials<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde R&#039;de bo\u015f bir matrisin nas\u0131l olu\u015fturulaca\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\/rde-bos-bir-matris-olusturun\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R&#039;de Bo\u015f Matris Nas\u0131l Olu\u015fturulur (\u00d6rneklerle) \u2013 Statorials\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde R&#039;de bo\u015f bir matrisin nas\u0131l olu\u015fturulaca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-24T06:24:51+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=\"1 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/\",\"url\":\"https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/\",\"name\":\"R&#39;de Bo\u015f Matris Nas\u0131l Olu\u015fturulur (\u00d6rneklerle) \u2013 Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-24T06:24:51+00:00\",\"dateModified\":\"2023-07-24T06:24:51+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde R&#39;de bo\u015f bir matrisin nas\u0131l olu\u015fturulaca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R&#39;de bo\u015f matris nas\u0131l olu\u015fturulur (\u00f6rneklerle)\"}]},{\"@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 Bo\u015f Matris Nas\u0131l Olu\u015fturulur (\u00d6rneklerle) \u2013 Statorials","description":"Bu e\u011fitimde R&#39;de bo\u015f bir matrisin nas\u0131l olu\u015fturulaca\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\/rde-bos-bir-matris-olusturun\/","og_locale":"tr_TR","og_type":"article","og_title":"R&#39;de Bo\u015f Matris Nas\u0131l Olu\u015fturulur (\u00d6rneklerle) \u2013 Statorials","og_description":"Bu e\u011fitimde R&#39;de bo\u015f bir matrisin nas\u0131l olu\u015fturulaca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/","og_site_name":"Statorials","article_published_time":"2023-07-24T06:24:51+00:00","author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Dr.benjamin anderson","Tahmini okuma s\u00fcresi":"1 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/","url":"https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/","name":"R&#39;de Bo\u015f Matris Nas\u0131l Olu\u015fturulur (\u00d6rneklerle) \u2013 Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-24T06:24:51+00:00","dateModified":"2023-07-24T06:24:51+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde R&#39;de bo\u015f bir matrisin nas\u0131l olu\u015fturulaca\u011f\u0131 birka\u00e7 \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/rde-bos-bir-matris-olusturun\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"R&#39;de bo\u015f matris nas\u0131l olu\u015fturulur (\u00f6rneklerle)"}]},{"@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\/1971","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=1971"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/1971\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=1971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=1971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=1971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}