{"id":2962,"date":"2023-07-19T21:30:46","date_gmt":"2023-07-19T21:30:46","guid":{"rendered":"https:\/\/statorials.org\/tr\/uygun-olmayan-argumanlar-r\/"},"modified":"2023-07-19T21:30:46","modified_gmt":"2023-07-19T21:30:46","slug":"uygun-olmayan-argumanlar-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/uygun-olmayan-argumanlar-r\/","title":{"rendered":"R&#39;deki bir hata nas\u0131l d\u00fczeltilir: uyumlu olmayan arg\u00fcmanlar"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">R&#8217;yi kullan\u0131rken kar\u015f\u0131la\u015fabilece\u011finiz bir hata mesaj\u0131:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>Error in matrix2 %*% matrix1: non-conformable arguments\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Bu hata, iki matrisi \u00e7arpmaya \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131zda ancak sol matristeki <strong>s\u00fctun<\/strong> say\u0131s\u0131 sa\u011f matristeki <strong>sat\u0131r<\/strong> say\u0131s\u0131yla e\u015fle\u015fmedi\u011finde ortaya \u00e7\u0131kar.<\/span><\/p>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnekte bu hatan\u0131n pratikte nas\u0131l \u00e7\u00f6z\u00fclece\u011fi g\u00f6sterilmektedir.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Hata nas\u0131l yeniden olu\u015fturulur?<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Diyelim ki R&#8217;de a\u015fa\u011f\u0131daki iki matrisimiz var:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create first matrix\n<span style=\"color: #000000;\">mat1 &lt;- matrix(1:10, nrow= <span style=\"color: #008000;\">5<\/span> ) \n\nmat1\n\n     [,1] [,2]\n[1,] 1 6\n[2,] 2 7\n[3,] 3 8\n[4,] 4 9\n[5,] 5 10\n\n<span style=\"color: #008080;\">#create second matrix\n<\/span>mat2 &lt;- matrix(1:6, nrow= <span style=\"color: #008000;\">2<\/span> )\n\nmat2\n\n     [,1] [,2] [,3]\n[1,] 1 3 5\n[2,] 2 4 6<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">\u015eimdi ikinci matrisi birinci matrisle \u00e7arpmaya \u00e7al\u0131\u015ft\u0131\u011f\u0131m\u0131z\u0131 varsayal\u0131m:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#attempt to multiply second matrix by first matrix\n<span style=\"color: #000000;\">mate2 %*% mate1\n\nError in mat2 %*% mat1: non-conformable arguments\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Sol matristeki <strong>s\u00fctun<\/strong> say\u0131s\u0131 (3) sa\u011f matristeki <strong>sat\u0131r<\/strong> say\u0131s\u0131 (5) ile e\u015fle\u015fmedi\u011finden hata al\u0131yoruz.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Hata nas\u0131l \u00f6nlenir<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\"><strong>Uyumsuz arg\u00fcmanlar<\/strong> hatas\u0131n\u0131 \u00f6nlemek i\u00e7in, bunun yerine ilk matrisi ikinci matrisle \u00e7arpman\u0131z gerekir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008080;\">multiply first matrix by second matrix<\/span>\nmate1 %*% mate2\n\n     [,1] [,2] [,3]\n[1,] 13 27 41\n[2,] 16 34 52\n[3,] 19 41 63\n[4,] 22 48 74\n[5,] 25 55 85\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Sol matristeki <strong>s\u00fctun<\/strong> say\u0131s\u0131 (2) sa\u011f matristeki <strong>sat\u0131r<\/strong> say\u0131s\u0131yla (2) e\u015fle\u015fti\u011finden, her iki matrisi de hatas\u0131z bir \u015fekilde ba\u015far\u0131l\u0131 bir \u015fekilde \u00e7arpabildi\u011fimize dikkat edin.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\">Her matristeki s\u00fctun ve sat\u0131r say\u0131s\u0131n\u0131 g\u00f6r\u00fcnt\u00fclemek i\u00e7in <strong>dim()<\/strong> i\u015flevini de kullanabiliriz:<\/span><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#view dimensions of first matrix\n<span style=\"color: #000000;\">dim(mat1)\n\n[1] 5 2\n\n<span style=\"color: #008080;\">#view dimensions of second matrix\n<\/span>dim(mat2)\n\n[1] 2 3\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Bu \u00e7\u0131kt\u0131dan \u015funlar\u0131 g\u00f6rebiliriz:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">\u0130lk matris <strong>5<\/strong> sat\u0131r ve <strong>2<\/strong> s\u00fctundan olu\u015fmaktad\u0131r.<\/span><\/li>\n<li> <span style=\"color: #000000;\">\u0130kinci matrisin <strong>2<\/strong> sat\u0131r\u0131 ve <strong>3<\/strong> s\u00fctunu vard\u0131r.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Bu a\u00e7\u0131k\u00e7a g\u00f6steriyor ki, ilk matrisin <strong>2<\/strong> s\u00fctunu ve ikinci matrisin <strong>2<\/strong> sat\u0131r\u0131 oldu\u011fundan \u00e7arpma s\u0131ras\u0131nda soldaki birinci matrisi ve sa\u011fdaki ikinci matrisi kullanmam\u0131z gerekiyor.<\/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 hatalar\u0131n nas\u0131l d\u00fczeltilece\u011fi a\u00e7\u0131klanmaktad\u0131r:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/tr\/r-argumanlari-farkli-sayida-satir-anlamina-gelir\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de nas\u0131l d\u00fczeltilir: ba\u011f\u0131ms\u0131z de\u011fi\u015fkenler farkl\u0131 say\u0131da sat\u0131r i\u00e7erir<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/kullanilmayan-bagimsiz-degiskenleri-secmede-dplyr-hatasi\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de nas\u0131l d\u00fczeltilir: kullan\u0131lmayan ba\u011f\u0131ms\u0131z de\u011fi\u015fkenlerin se\u00e7iminde hata<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/sifir-uzunlukta-r-degistirme\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de nas\u0131l onar\u0131l\u0131r: de\u011fi\u015ftirmenin uzunlu\u011fu s\u0131f\u0131rd\u0131r<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>R&#8217;yi kullan\u0131rken kar\u015f\u0131la\u015fabilece\u011finiz bir hata mesaj\u0131: Error in matrix2 %*% matrix1: non-conformable arguments Bu hata, iki matrisi \u00e7arpmaya \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131zda ancak sol matristeki s\u00fctun say\u0131s\u0131 sa\u011f matristeki sat\u0131r say\u0131s\u0131yla e\u015fle\u015fmedi\u011finde ortaya \u00e7\u0131kar. A\u015fa\u011f\u0131daki \u00f6rnekte bu hatan\u0131n pratikte nas\u0131l \u00e7\u00f6z\u00fclece\u011fi g\u00f6sterilmektedir. Hata nas\u0131l yeniden olu\u015fturulur? Diyelim ki R&#8217;de a\u015fa\u011f\u0131daki iki matrisimiz var: #create first matrix mat1 &lt;- [&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-2962","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;deki bir hata nas\u0131l d\u00fczeltilir: uyumlu olmayan arg\u00fcmanlar - Statorials<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde R&#039;deki uyumsuz arg\u00fcmanlar hatas\u0131n\u0131n nas\u0131l d\u00fczeltilece\u011fi bir \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\/uygun-olmayan-argumanlar-r\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R&#039;deki bir hata nas\u0131l d\u00fczeltilir: uyumlu olmayan arg\u00fcmanlar - Statorials\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde R&#039;deki uyumsuz arg\u00fcmanlar hatas\u0131n\u0131n nas\u0131l d\u00fczeltilece\u011fi bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/uygun-olmayan-argumanlar-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-19T21:30:46+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\/uygun-olmayan-argumanlar-r\/\",\"url\":\"https:\/\/statorials.org\/tr\/uygun-olmayan-argumanlar-r\/\",\"name\":\"R&#39;deki bir hata nas\u0131l d\u00fczeltilir: uyumlu olmayan arg\u00fcmanlar - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-19T21:30:46+00:00\",\"dateModified\":\"2023-07-19T21:30:46+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde R&#39;deki uyumsuz arg\u00fcmanlar hatas\u0131n\u0131n nas\u0131l d\u00fczeltilece\u011fi bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/uygun-olmayan-argumanlar-r\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/uygun-olmayan-argumanlar-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/uygun-olmayan-argumanlar-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R&#39;deki bir hata nas\u0131l d\u00fczeltilir: uyumlu olmayan arg\u00fcmanlar\"}]},{\"@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;deki bir hata nas\u0131l d\u00fczeltilir: uyumlu olmayan arg\u00fcmanlar - Statorials","description":"Bu e\u011fitimde R&#39;deki uyumsuz arg\u00fcmanlar hatas\u0131n\u0131n nas\u0131l d\u00fczeltilece\u011fi bir \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\/uygun-olmayan-argumanlar-r\/","og_locale":"tr_TR","og_type":"article","og_title":"R&#39;deki bir hata nas\u0131l d\u00fczeltilir: uyumlu olmayan arg\u00fcmanlar - Statorials","og_description":"Bu e\u011fitimde R&#39;deki uyumsuz arg\u00fcmanlar hatas\u0131n\u0131n nas\u0131l d\u00fczeltilece\u011fi bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/uygun-olmayan-argumanlar-r\/","og_site_name":"Statorials","article_published_time":"2023-07-19T21:30:46+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\/uygun-olmayan-argumanlar-r\/","url":"https:\/\/statorials.org\/tr\/uygun-olmayan-argumanlar-r\/","name":"R&#39;deki bir hata nas\u0131l d\u00fczeltilir: uyumlu olmayan arg\u00fcmanlar - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-19T21:30:46+00:00","dateModified":"2023-07-19T21:30:46+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde R&#39;deki uyumsuz arg\u00fcmanlar hatas\u0131n\u0131n nas\u0131l d\u00fczeltilece\u011fi bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/uygun-olmayan-argumanlar-r\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/uygun-olmayan-argumanlar-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/uygun-olmayan-argumanlar-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"R&#39;deki bir hata nas\u0131l d\u00fczeltilir: uyumlu olmayan arg\u00fcmanlar"}]},{"@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\/2962","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=2962"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/2962\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=2962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=2962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=2962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}