{"id":2001,"date":"2023-07-24T03:27:13","date_gmt":"2023-07-24T03:27:13","guid":{"rendered":"https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/"},"modified":"2023-07-24T03:27:13","modified_gmt":"2023-07-24T03:27:13","slug":"desativar-a-notacao-cientifica-em-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/","title":{"rendered":"Como desativar a nota\u00e7\u00e3o cient\u00edfica em r (com exemplos)"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Voc\u00ea pode usar os seguintes m\u00e9todos para desativar a nota\u00e7\u00e3o cient\u00edfica em R:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>M\u00e9todo 1: desativar a nota\u00e7\u00e3o cient\u00edfica como configura\u00e7\u00e3o global<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong>options(scipen= <span style=\"color: #008000;\">999<\/span> )\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\"><strong>M\u00e9todo 2: desabilitar a nota\u00e7\u00e3o cient\u00edfica para uma vari\u00e1vel<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong>format(x, scientific = <span style=\"color: #008000;\">F<\/span> )\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Os exemplos a seguir mostram como usar cada um desses m\u00e9todos na pr\u00e1tica.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>M\u00e9todo 1: desativar a nota\u00e7\u00e3o cient\u00edfica como configura\u00e7\u00e3o global<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Suponha que realizemos a seguinte multiplica\u00e7\u00e3o em R:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#perform multiplication<\/span>\nx &lt;- 9999999 * 12345\n\n<span style=\"color: #008080;\">#view results<\/span><\/strong>\n<strong>x\n\n[1] 1.2345e+11\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">O resultado \u00e9 exibido em nota\u00e7\u00e3o cient\u00edfica, pois o n\u00famero \u00e9 muito grande.<\/span><\/p>\n<p> <span style=\"color: #000000;\">O c\u00f3digo a seguir mostra como desabilitar a nota\u00e7\u00e3o cient\u00edfica como configura\u00e7\u00e3o global. Isto significa que nenhuma vari\u00e1vel em qualquer sa\u00edda ser\u00e1 exibida em nota\u00e7\u00e3o cient\u00edfica.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #000000;\"><span style=\"color: #008080;\">#turn off scientific notation for all variables\n<\/span>options(scipen= <span style=\"color: #008000;\">999<\/span> ) \n\n<\/span><span style=\"color: #008080;\">#perform multiplication<\/span>\nx &lt;- 9999999 * 12345\n\n<span style=\"color: #008080;\">#view results<\/span>\nx\n\n[1] 123449987655\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Observe que o n\u00famero inteiro \u00e9 exibido porque desativamos a nota\u00e7\u00e3o cient\u00edfica.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Observe que o valor padr\u00e3o de scipen \u00e9 <strong>0<\/strong> , ent\u00e3o voc\u00ea pode redefinir essa configura\u00e7\u00e3o global usando <strong>options(scipen=0)<\/strong> em R:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #000000;\"><span style=\"color: #008080;\">#turn scientific notation back on\n<\/span>options(scipen= <span style=\"color: #008000;\">0<\/span> ) \n\n<span style=\"color: #008080;\">#perform multiplication again\n<\/span>x &lt;- 9999999 * 12345\n\n<span style=\"color: #008080;\">#view results\n<\/span>x\n\n[1] 1.2345e+11\n<\/span><\/strong><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>M\u00e9todo 2: desabilitar a nota\u00e7\u00e3o cient\u00edfica para uma vari\u00e1vel<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">O c\u00f3digo a seguir mostra como desabilitar a nota\u00e7\u00e3o cient\u00edfica para uma \u00fanica vari\u00e1vel:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#perform multiplication<\/span>\nx &lt;- 9999999 * 12345\n\n<span style=\"color: #008080;\">#display results and turn of scientific notation\n<\/span>format(x, scientific = <span style=\"color: #008000;\">F<\/span> )\n\n[1] \"123449987655\"\n\n<span style=\"color: #008080;\">#perform another multiplication<\/span>\ny &lt;- 9999999 * 999999\n\n<span style=\"color: #008080;\">#view results<\/span>\ny\n\n[1] 9.999989e+12\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Observe que apenas a primeira vari\u00e1vel \u00e9 exibida sem nota\u00e7\u00e3o cient\u00edfica, pois \u00e9 a \u00fanica vari\u00e1vel na qual usamos a fun\u00e7\u00e3o <strong>format()<\/strong> .<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Recursos adicionais<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Os tutoriais a seguir mostram como realizar outras opera\u00e7\u00f5es comuns em R:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/pt\/redondo-em-r\/\" target=\"_blank\" rel=\"noopener\">Como arredondar n\u00fameros em R<\/a><br \/> <a href=\"https:\/\/statorials.org\/pt\/r-converter-vetor-em-string\/\" target=\"_blank\" rel=\"noopener\">Como converter vetor em string em R<\/a><br \/> <a href=\"https:\/\/statorials.org\/pt\/converter-coluna-do-quadro-de-dados-em-vetor-r\/\" target=\"_blank\" rel=\"noopener\">Como converter coluna de quadro de dados em vetor em R<\/a><br \/> <a href=\"https:\/\/statorials.org\/pt\/converter-matriz-em-vetor-r\/\" target=\"_blank\" rel=\"noopener\">Como converter matriz em vetor em R<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Voc\u00ea pode usar os seguintes m\u00e9todos para desativar a nota\u00e7\u00e3o cient\u00edfica em R: M\u00e9todo 1: desativar a nota\u00e7\u00e3o cient\u00edfica como configura\u00e7\u00e3o global options(scipen= 999 ) M\u00e9todo 2: desabilitar a nota\u00e7\u00e3o cient\u00edfica para uma vari\u00e1vel format(x, scientific = F ) Os exemplos a seguir mostram como usar cada um desses m\u00e9todos na pr\u00e1tica. M\u00e9todo 1: desativar [&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-2001","post","type-post","status-publish","format-standard","hentry","category-guia"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Como desativar a nota\u00e7\u00e3o cient\u00edfica em R (com exemplos) - Estatologia<\/title>\n<meta name=\"description\" content=\"Este tutorial explica como desabilitar a nota\u00e7\u00e3o cient\u00edfica em R, com v\u00e1rios exemplos.\" \/>\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\/pt\/desativar-a-notacao-cientifica-em-r\/\" \/>\n<meta property=\"og:locale\" content=\"pt_PT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Como desativar a nota\u00e7\u00e3o cient\u00edfica em R (com exemplos) - Estatologia\" \/>\n<meta property=\"og:description\" content=\"Este tutorial explica como desabilitar a nota\u00e7\u00e3o cient\u00edfica em R, com v\u00e1rios exemplos.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-24T03:27:13+00:00\" \/>\n<meta name=\"author\" content=\"Dr. benjamim anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr. benjamim anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo estimado de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/\",\"url\":\"https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/\",\"name\":\"Como desativar a nota\u00e7\u00e3o cient\u00edfica em R (com exemplos) - Estatologia\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/pt\/#website\"},\"datePublished\":\"2023-07-24T03:27:13+00:00\",\"dateModified\":\"2023-07-24T03:27:13+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/pt\/#\/schema\/person\/e08f98e8db95e0aa9c310e1b27c9c666\"},\"description\":\"Este tutorial explica como desabilitar a nota\u00e7\u00e3o cient\u00edfica em R, com v\u00e1rios exemplos.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/#breadcrumb\"},\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Lar\",\"item\":\"https:\/\/statorials.org\/pt\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Como desativar a nota\u00e7\u00e3o cient\u00edfica em r (com exemplos)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/pt\/#website\",\"url\":\"https:\/\/statorials.org\/pt\/\",\"name\":\"Statorials\",\"description\":\"O seu guia para a literacia estat\u00edstica!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/pt\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"pt-PT\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/pt\/#\/schema\/person\/e08f98e8db95e0aa9c310e1b27c9c666\",\"name\":\"Dr. benjamim anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\/\/statorials.org\/pt\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/pt\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/pt\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr. benjamim anderson\"},\"description\":\"Ol\u00e1, sou Benjamin, um professor aposentado de estat\u00edstica que se tornou professor dedicado na Statorials. Com vasta experi\u00eancia e conhecimento na \u00e1rea de estat\u00edstica, estou empenhado em compartilhar meu conhecimento para capacitar os alunos por meio de Statorials. Saber mais\",\"sameAs\":[\"https:\/\/statorials.org\/pt\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Como desativar a nota\u00e7\u00e3o cient\u00edfica em R (com exemplos) - Estatologia","description":"Este tutorial explica como desabilitar a nota\u00e7\u00e3o cient\u00edfica em R, com v\u00e1rios exemplos.","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\/pt\/desativar-a-notacao-cientifica-em-r\/","og_locale":"pt_PT","og_type":"article","og_title":"Como desativar a nota\u00e7\u00e3o cient\u00edfica em R (com exemplos) - Estatologia","og_description":"Este tutorial explica como desabilitar a nota\u00e7\u00e3o cient\u00edfica em R, com v\u00e1rios exemplos.","og_url":"https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/","og_site_name":"Statorials","article_published_time":"2023-07-24T03:27:13+00:00","author":"Dr. benjamim anderson","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Dr. benjamim anderson","Tempo estimado de leitura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/","url":"https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/","name":"Como desativar a nota\u00e7\u00e3o cient\u00edfica em R (com exemplos) - Estatologia","isPartOf":{"@id":"https:\/\/statorials.org\/pt\/#website"},"datePublished":"2023-07-24T03:27:13+00:00","dateModified":"2023-07-24T03:27:13+00:00","author":{"@id":"https:\/\/statorials.org\/pt\/#\/schema\/person\/e08f98e8db95e0aa9c310e1b27c9c666"},"description":"Este tutorial explica como desabilitar a nota\u00e7\u00e3o cient\u00edfica em R, com v\u00e1rios exemplos.","breadcrumb":{"@id":"https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/#breadcrumb"},"inLanguage":"pt-PT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/pt\/desativar-a-notacao-cientifica-em-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Lar","item":"https:\/\/statorials.org\/pt\/"},{"@type":"ListItem","position":2,"name":"Como desativar a nota\u00e7\u00e3o cient\u00edfica em r (com exemplos)"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/pt\/#website","url":"https:\/\/statorials.org\/pt\/","name":"Statorials","description":"O seu guia para a literacia estat\u00edstica!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/pt\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"pt-PT"},{"@type":"Person","@id":"https:\/\/statorials.org\/pt\/#\/schema\/person\/e08f98e8db95e0aa9c310e1b27c9c666","name":"Dr. benjamim anderson","image":{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/statorials.org\/pt\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/pt\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/pt\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Dr. benjamim anderson"},"description":"Ol\u00e1, sou Benjamin, um professor aposentado de estat\u00edstica que se tornou professor dedicado na Statorials. Com vasta experi\u00eancia e conhecimento na \u00e1rea de estat\u00edstica, estou empenhado em compartilhar meu conhecimento para capacitar os alunos por meio de Statorials. Saber mais","sameAs":["https:\/\/statorials.org\/pt"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/posts\/2001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/comments?post=2001"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/posts\/2001\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/media?parent=2001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/categories?post=2001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/tags?post=2001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}