{"id":956,"date":"2023-07-28T04:49:24","date_gmt":"2023-07-28T04:49:24","guid":{"rendered":"https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/"},"modified":"2023-07-28T04:49:24","modified_gmt":"2023-07-28T04:49:24","slug":"stampa-tutte-le-righe-del-tibble-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/","title":{"rendered":"Come stampare tutte le righe di un tibble in r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Un <strong>tibble<\/strong> \u00e8 un frame di dati in R che dispone di un metodo di stampa perfezionato che visualizza solo le prime 10 righe di un frame di dati. Ci\u00f2 rende molto pi\u00f9 semplice lavorare con dati di grandi dimensioni e impedisce a R di tentare di visualizzare ogni riga in un frame di dati.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Ad esempio, considera il seguente tibble con 80 righe e 2 colonne:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#load dplyr\n<span style=\"color: #000000;\">library(dplyr)<\/span>\n\n#make this example reproducible\n<span style=\"color: #000000;\">set.seed(1)<\/span>\n\n#create tibble<\/span>\ndata &lt;- tibble(a = rnorm(80),\n               b = rnorm(80))\n<\/strong>\n<strong><span style=\"color: #008080;\">#view tibble\n<\/span>data\n\n# A tibble: 80 x 2\n        ab\n      \n 1 -0.626 -0.569\n 2 0.184 -0.135\n 3 -0.836 1.18 \n 4 1.60 -1.52 \n 5 0.330 0.594\n 6 -0.820 0.333\n 7 0.487 1.06 \n 8 0.738 -0.304\n 9 0.576 0.370\n10 -0.305 0.267\n# ... with 70 more rows<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Quando digitiamo il nome del tibble in R, per impostazione predefinita verranno visualizzate solo le prime 10 righe. Tuttavia, questo ci dice che ci sono <strong>70 righe aggiuntive<\/strong> che non vengono visualizzate.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Ma in alcuni casi potresti voler vedere pi\u00f9 di 10 righe di un tibble.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Nota:<\/strong> se non hai familiarit\u00e0 con tibbles, un buon punto di partenza \u00e8 il <a href=\"https:\/\/r4ds.had.co.nz\/tibbles.html\" target=\"_blank\" rel=\"noopener noreferrer\">capitolo tibbles<\/a> di <em>R for Data Science<\/em> .<\/span><\/p>\n<h3> <strong>Stampa un numero specifico di righe da un Tibble<\/strong><\/h3>\n<p> <span style=\"color: #000000;\">Puoi stampare un numero specifico di righe di un tibble specificando un numero nella funzione <strong>print()<\/strong> :<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#print first 20 rows of tibble<\/span>\nprint(data, n= <span style=\"color: #008000;\">20<\/span> )\n<\/strong><strong>\n# A tibble: 80 x 2\n         ab\n       \n 1 -0.626 -0.569\n 2 0.184 -0.135\n 3 -0.836 1.18 \n 4 1.60 -1.52 \n 5 0.330 0.594\n 6 -0.820 0.333\n 7 0.487 1.06 \n 8 0.738 -0.304\n 9 0.576 0.370\n10 -0.305 0.267\n11 1.51 -0.543\n12 0.390 1.21 \n13 -0.621 1.16 \n14 -2.21 0.700\n15 1.12 1.59 \n16 -0.0449 0.558\n17 -0.0162 -1.28 \n18 0.944 -0.573\n19 0.821 -1.22 \n20 0.594 -0.473\n# ... with 60 more rows<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Puoi anche utilizzare l&#8217;operatore pipe per ottenere lo stesso risultato:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#print first 20 rows of tibble<\/span>\ndata %&gt;% print(n= <span style=\"color: #008000;\">20<\/span> )\n<\/strong><strong>\n# A tibble: 80 x 2\n         ab\n       \n 1 -0.626 -0.569\n 2 0.184 -0.135\n 3 -0.836 1.18 \n 4 1.60 -1.52 \n 5 0.330 0.594\n 6 -0.820 0.333\n 7 0.487 1.06 \n 8 0.738 -0.304\n 9 0.576 0.370\n10 -0.305 0.267\n11 1.51 -0.543\n12 0.390 1.21 \n13 -0.621 1.16 \n14 -2.21 0.700\n15 1.12 1.59 \n16 -0.0449 0.558\n17 -0.0162 -1.28 \n18 0.944 -0.573\n19 0.821 -1.22 \n20 0.594 -0.473\n# ... with 60 more rows<\/strong><\/pre>\n<h3> <strong>Stampa tutte le righe di un Tibble<\/strong><\/h3>\n<p> <span style=\"color: #000000;\">Puoi stampare ogni riga di un tibble specificando <strong>n = Inf<\/strong> :<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#print all rows of tibble<\/span>\ndata %&gt;% print(n= <span style=\"color: #008000;\">Inf<\/span> )\n<\/strong><strong>\n# A tibble: 80 x 2\n          ab\n         \n 1 -0.626 -0.569 \n 2 0.184 -0.135 \n 3 -0.836 1.18  \n 4 1.60 -1.52  \n 5 0.330 0.594 \n 6 -0.820 0.333 \n 7 0.487 1.06  \n 8 0.738 -0.304 \n 9 0.576 0.370 \n10 -0.305 0.267 \n11 1.51 -0.543 \n12 0.390 1.21  \n13 -0.621 1.16  \n14 -2.21 0.700 \n15 1.12 1.59  \n16 -0.0449 0.558 \n17 -0.0162 -1.28  \n18 0.944 -0.573 \n19 0.821 -1.22  \n20 0.594 -0.473 \n21 0.919 -0.620 \n22 0.782 0.0421\n23 0.0746 -0.911 \n24 -1.99 0.158 \n25 0.620 -0.655 \n26 -0.0561 1.77  \n27 -0.156 0.717 \n28 -1.47 0.910 \n29 -0.478 0.384 \n30 0.418 1.68  \n31 1.36 -0.636 \n32 -0.103 -0.462 \n33 0.388 1.43  \n34 -0.0538 -0.651 \n35 -1.38 -0.207 \n36 -0.415 -0.393 \n37 -0.394 -0.320 \n38 -0.0593 -0.279 \n39 1.10 0.494 \n40 0.763 -0.177 \n41 -0.165 -0.506 \n42 -0.253 1.34  \n43 0.697 -0.215 \n44 0.557 -0.180 \n45 -0.689 -0.100 \n46 -0.707 0.713 \n47 0.365 -0.0736\n48 0.769 -0.0376\n49 -0.112 -0.682 \n50 0.881 -0.324 \n51 0.398 0.0602\n52 -0.612 -0.589 \n53 0.341 0.531 \n54 -1.13 -1.52  \n55 1.43 0.307 \n56 1.98 -1.54  \n57 -0.367 -0.301 \n58 -1.04 -0.528 \n59 0.570 -0.652 \n60 -0.135 -0.0569\n61 2.40 -1.91  \n62 -0.0392 1.18  \n63 0.690 -1.66  \n64 0.0280 -0.464 \n65 -0.743 -1.12  \n66 0.189 -0.751 \n67 -1.80 2.09  \n68 1.47 0.0174\n69 0.153 -1.29  \n70 2.17 -1.64  \n71 0.476 0.450 \n72 -0.710 -0.0186\n73 0.611 -0.318 \n74 -0.934 -0.929 \n75 -1.25 -1.49  \n76 0.291 -1.08  \n77 -0.443 1.00  \n78 0.00111 -0.621 \n79 0.0743 -1.38  \n80 -0.590 1.87<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><em>Puoi trovare altri tutorial su R qui .<\/em><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Un tibble \u00e8 un frame di dati in R che dispone di un metodo di stampa perfezionato che visualizza solo le prime 10 righe di un frame di dati. Ci\u00f2 rende molto pi\u00f9 semplice lavorare con dati di grandi dimensioni e impedisce a R di tentare di visualizzare ogni riga in un frame di dati. [&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":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Come stampare tutte le righe di un Tibble in R - Stology<\/title>\n<meta name=\"description\" content=\"Una semplice spiegazione su come stampare tutte le righe di un tibble in R.\" \/>\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\/it\/stampa-tutte-le-righe-del-tibble-r\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Come stampare tutte le righe di un Tibble in R - Stology\" \/>\n<meta property=\"og:description\" content=\"Una semplice spiegazione su come stampare tutte le righe di un tibble in R.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-28T04:49:24+00:00\" \/>\n<meta name=\"author\" content=\"Benjamin anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Benjamin anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/\",\"url\":\"https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/\",\"name\":\"Come stampare tutte le righe di un Tibble in R - Stology\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/it\/#website\"},\"datePublished\":\"2023-07-28T04:49:24+00:00\",\"dateModified\":\"2023-07-28T04:49:24+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae\"},\"description\":\"Una semplice spiegazione su come stampare tutte le righe di un tibble in R.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Casa\",\"item\":\"https:\/\/statorials.org\/it\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Come stampare tutte le righe di un tibble in r\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/it\/#website\",\"url\":\"https:\/\/statorials.org\/it\/\",\"name\":\"Statorials\",\"description\":\"La tua guida all&#039;alfabetizzazione statistica!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/it\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae\",\"name\":\"Benjamin anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\/\/statorials.org\/it\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/it\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/it\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Benjamin anderson\"},\"description\":\"Ciao, sono Benjamin, un professore di statistica in pensione diventato insegnante dedicato di Statorials. Con una vasta esperienza e competenza nel campo della statistica, sono ansioso di condividere le mie conoscenze per potenziare gli studenti attraverso Statorials. Scopri di pi\u00f9\",\"sameAs\":[\"https:\/\/statorials.org\/it\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Come stampare tutte le righe di un Tibble in R - Stology","description":"Una semplice spiegazione su come stampare tutte le righe di un tibble in R.","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\/it\/stampa-tutte-le-righe-del-tibble-r\/","og_locale":"it_IT","og_type":"article","og_title":"Come stampare tutte le righe di un Tibble in R - Stology","og_description":"Una semplice spiegazione su come stampare tutte le righe di un tibble in R.","og_url":"https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/","og_site_name":"Statorials","article_published_time":"2023-07-28T04:49:24+00:00","author":"Benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Benjamin anderson","Est. reading time":"2 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/","url":"https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/","name":"Come stampare tutte le righe di un Tibble in R - Stology","isPartOf":{"@id":"https:\/\/statorials.org\/it\/#website"},"datePublished":"2023-07-28T04:49:24+00:00","dateModified":"2023-07-28T04:49:24+00:00","author":{"@id":"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae"},"description":"Una semplice spiegazione su come stampare tutte le righe di un tibble in R.","breadcrumb":{"@id":"https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/it\/stampa-tutte-le-righe-del-tibble-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Casa","item":"https:\/\/statorials.org\/it\/"},{"@type":"ListItem","position":2,"name":"Come stampare tutte le righe di un tibble in r"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/it\/#website","url":"https:\/\/statorials.org\/it\/","name":"Statorials","description":"La tua guida all&#039;alfabetizzazione statistica!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/it\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"it-IT"},{"@type":"Person","@id":"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae","name":"Benjamin anderson","image":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/statorials.org\/it\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/it\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/it\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Benjamin anderson"},"description":"Ciao, sono Benjamin, un professore di statistica in pensione diventato insegnante dedicato di Statorials. Con una vasta esperienza e competenza nel campo della statistica, sono ansioso di condividere le mie conoscenze per potenziare gli studenti attraverso Statorials. Scopri di pi\u00f9","sameAs":["https:\/\/statorials.org\/it"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/posts\/956"}],"collection":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/comments?post=956"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/posts\/956\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/media?parent=956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/categories?post=956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/tags?post=956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}