{"id":3322,"date":"2023-07-18T02:38:14","date_gmt":"2023-07-18T02:38:14","guid":{"rendered":"https:\/\/statorials.org\/tr\/r-sutun-adlarindan-daha-fazla-sutun\/"},"modified":"2023-07-18T02:38:14","modified_gmt":"2023-07-18T02:38:14","slug":"r-sutun-adlarindan-daha-fazla-sutun","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/r-sutun-adlarindan-daha-fazla-sutun\/","title":{"rendered":"R&#39;de nas\u0131l d\u00fczeltilir: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">R&#8217;de kar\u015f\u0131la\u015fabilece\u011finiz bir hata:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>Error in read.table(\"my_data.csv\", header=TRUE): \n  more columns than column names \n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Bu hata genellikle R&#8217;de bir CSV dosyas\u0131n\u0131 <strong>read.table()<\/strong> i\u015flevini kullanarak okumaya \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131zda ve ay\u0131r\u0131c\u0131n\u0131n ( <strong>sep<\/strong> ) virg\u00fcl olmas\u0131 gerekti\u011fini belirtmede ba\u015far\u0131s\u0131z oldu\u011funuzda ortaya \u00e7\u0131kar.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu e\u011fitimde bu hatan\u0131n nas\u0131l d\u00fczeltilece\u011fi tam olarak a\u00e7\u0131klanmaktad\u0131r.<\/span><\/p>\n<h2> <strong>Hata nas\u0131l yeniden olu\u015fturulur?<\/strong><\/h2>\n<p> <span style=\"color: #000000;\">Diyelim ki <strong>basketbol_data.csv<\/strong> ad\u0131nda a\u015fa\u011f\u0131daki CSV dosyam\u0131z var:<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-28030 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pluscol1.jpg\" alt=\"\" width=\"489\" height=\"333\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">\u015eimdi bu dosyay\u0131 <a href=\"https:\/\/statorials.org\/tr\/r-okuma-masasi\/\" target=\"_blank\" rel=\"noopener\">read.table()<\/a> i\u015flevini kullanarak R&#8217;ye aktarmaya \u00e7al\u0131\u015ft\u0131\u011f\u0131m\u0131z\u0131 varsayal\u0131m:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#attempt to import CSV into data frame\n<span style=\"color: #000000;\">df &lt;- read. <span style=\"color: #3366ff;\">table<\/span> (\"basketball_data.csv\", header= <span style=\"color: #008000;\">TRUE<\/span> ) \n<\/span>\n<span style=\"color: #000000;\">Error in read.table(\"basketball_data.csv\", header = TRUE): \n  more columns than column names\n<\/span><\/span><\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Dosyam\u0131zdaki de\u011ferlerin virg\u00fclle ayr\u0131lm\u0131\u015f oldu\u011funu belirtmedi\u011fimiz i\u00e7in hata al\u0131yoruz.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Veri \u00e7er\u00e7evesinin sat\u0131rlar\u0131ndaki de\u011ferler aras\u0131nda bo\u015fluklar oldu\u011fu ancak ba\u015fl\u0131kta bulunmad\u0131\u011f\u0131 i\u00e7in <strong>read.table()<\/strong> i\u015flevi yaln\u0131zca bir s\u00fctun oldu\u011funu d\u00fc\u015f\u00fcn\u00fcr.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu bize s\u00fctun adlar\u0131ndan daha fazla s\u00fctun oldu\u011funu s\u00f6yler.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Hata nas\u0131l d\u00fczeltilir?<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">Bu hatay\u0131 d\u00fczeltmenin yolu <strong>, dosyay\u0131 i\u00e7e aktar\u0131rken sep = &#8220;&#8221;<\/strong> kullanmakt\u0131r:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#import CSV file into data frame\n<span style=\"color: #000000;\">df &lt;- read. <span style=\"color: #3366ff;\">table<\/span> (\"basketball_data.csv\", header= <span style=\"color: #008000;\">TRUE<\/span> , sep=\",\")\n<\/span>\n#view data frame\n<span style=\"color: #000000;\">df<\/span>\n<span style=\"color: #000000;\">team points rebounds\n1 to 22 10\n2 B 14 9\n3 C 29 6\n4 D 30 2\n<\/span><\/span><\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Dosyadaki de\u011ferlerin virg\u00fclle ayr\u0131lm\u0131\u015f oldu\u011funu belirtti\u011fimiz i\u00e7in CSV dosyas\u0131n\u0131 hatas\u0131z bir \u015fekilde i\u00e7e aktarabiliyoruz.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Alternatif olarak, e\u011fer CSV dosyas\u0131 oldu\u011funu biliyorsak dosyay\u0131 i\u00e7e aktarmak i\u00e7in <strong>read.csv()<\/strong> i\u015flevini kullanabiliriz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#import CSV file into data frame\n<\/span>df &lt;- read. <span style=\"color: #3366ff;\">csv<\/span> (\"basketball_data.csv\", header= <span style=\"color: #008000;\">TRUE<\/span> )\n\n<span style=\"color: #008080;\">#view data frame\n<\/span>df\n\n  team points rebounds\n1 'A' 22 10\n2 'B' 14 9\n3 'C' 29 6\n4 'D' 30 2<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Bu sefer CSV dosyas\u0131n\u0131 i\u00e7e aktar\u0131rken de herhangi bir hata almad\u0131\u011f\u0131m\u0131z\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;deki di\u011fer yayg\u0131n hatalar\u0131n nas\u0131l \u00e7\u00f6z\u00fclece\u011fi a\u00e7\u0131klanmaktad\u0131r:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/tr\/r-adlarindaki-rbind-hatasi-onceki-adlarla-eslesmiyor\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de nas\u0131l d\u00fczeltilir: Adlar \u00f6nceki adlarla e\u015fle\u015fmiyor<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\">R&#8217;de nas\u0131l d\u00fczeltilir: daha uzun bir nesnenin uzunlu\u011fu, daha k\u0131sa bir nesnenin uzunlu\u011funun kat\u0131 de\u011fildir<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/2-veya-daha-fazla-seviyeye-sahip-faktorlere-uygulanan-kontrastlar\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de nas\u0131l d\u00fczeltilir: kontrastlar yaln\u0131zca 2 veya daha fazla seviyeye sahip fakt\u00f6rlere uygulanabilir<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>R&#8217;de kar\u015f\u0131la\u015fabilece\u011finiz bir hata: Error in read.table(&#8220;my_data.csv&#8221;, header=TRUE): more columns than column names Bu hata genellikle R&#8217;de bir CSV dosyas\u0131n\u0131 read.table() i\u015flevini kullanarak okumaya \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131zda ve ay\u0131r\u0131c\u0131n\u0131n ( sep ) virg\u00fcl olmas\u0131 gerekti\u011fini belirtmede ba\u015far\u0131s\u0131z oldu\u011funuzda ortaya \u00e7\u0131kar. Bu e\u011fitimde bu hatan\u0131n nas\u0131l d\u00fczeltilece\u011fi tam olarak a\u00e7\u0131klanmaktad\u0131r. Hata nas\u0131l yeniden olu\u015fturulur? Diyelim ki basketbol_data.csv ad\u0131nda [&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-3322","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 nas\u0131l d\u00fczeltilir: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun - Statorials<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde R&#039;de \u015fu hatan\u0131n nas\u0131l d\u00fczeltilece\u011fi a\u00e7\u0131klanmaktad\u0131r: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun.\" \/>\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-sutun-adlarindan-daha-fazla-sutun\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R&#039;de nas\u0131l d\u00fczeltilir: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun - Statorials\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde R&#039;de \u015fu hatan\u0131n nas\u0131l d\u00fczeltilece\u011fi a\u00e7\u0131klanmaktad\u0131r: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/r-sutun-adlarindan-daha-fazla-sutun\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-18T02:38:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pluscol1.jpg\" \/>\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-sutun-adlarindan-daha-fazla-sutun\/\",\"url\":\"https:\/\/statorials.org\/tr\/r-sutun-adlarindan-daha-fazla-sutun\/\",\"name\":\"R&#39;de nas\u0131l d\u00fczeltilir: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-18T02:38:14+00:00\",\"dateModified\":\"2023-07-18T02:38:14+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde R&#39;de \u015fu hatan\u0131n nas\u0131l d\u00fczeltilece\u011fi a\u00e7\u0131klanmaktad\u0131r: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/r-sutun-adlarindan-daha-fazla-sutun\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/r-sutun-adlarindan-daha-fazla-sutun\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/r-sutun-adlarindan-daha-fazla-sutun\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R&#39;de nas\u0131l d\u00fczeltilir: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun\"}]},{\"@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 nas\u0131l d\u00fczeltilir: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun - Statorials","description":"Bu e\u011fitimde R&#39;de \u015fu hatan\u0131n nas\u0131l d\u00fczeltilece\u011fi a\u00e7\u0131klanmaktad\u0131r: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun.","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-sutun-adlarindan-daha-fazla-sutun\/","og_locale":"tr_TR","og_type":"article","og_title":"R&#39;de nas\u0131l d\u00fczeltilir: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun - Statorials","og_description":"Bu e\u011fitimde R&#39;de \u015fu hatan\u0131n nas\u0131l d\u00fczeltilece\u011fi a\u00e7\u0131klanmaktad\u0131r: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun.","og_url":"https:\/\/statorials.org\/tr\/r-sutun-adlarindan-daha-fazla-sutun\/","og_site_name":"Statorials","article_published_time":"2023-07-18T02:38:14+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/pluscol1.jpg"}],"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-sutun-adlarindan-daha-fazla-sutun\/","url":"https:\/\/statorials.org\/tr\/r-sutun-adlarindan-daha-fazla-sutun\/","name":"R&#39;de nas\u0131l d\u00fczeltilir: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-18T02:38:14+00:00","dateModified":"2023-07-18T02:38:14+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde R&#39;de \u015fu hatan\u0131n nas\u0131l d\u00fczeltilece\u011fi a\u00e7\u0131klanmaktad\u0131r: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/r-sutun-adlarindan-daha-fazla-sutun\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/r-sutun-adlarindan-daha-fazla-sutun\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/r-sutun-adlarindan-daha-fazla-sutun\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"R&#39;de nas\u0131l d\u00fczeltilir: s\u00fctun adlar\u0131ndan daha fazla s\u00fctun"}]},{"@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\/3322","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=3322"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/3322\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=3322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=3322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=3322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}