{"id":4230,"date":"2024-05-02T11:12:35","date_gmt":"2024-05-02T09:12:35","guid":{"rendered":"https:\/\/www.psyctc.org\/psyctc\/?post_type=docs&#038;p=4230"},"modified":"2024-05-02T11:12:36","modified_gmt":"2024-05-02T09:12:36","password":"","slug":"tidyverse","status":"publish","type":"docs","link":"https:\/\/www.psyctc.org\/psyctc\/glossary2\/tidyverse\/","title":{"rendered":"Tidyverse"},"content":{"rendered":"\n<p>This is really just amusement but largely switching the way I use R from &#8220;base\/standard R&#8221; to using the tidyverse has been a real education for me and has made it much easier for me to handle complex multilevel data from services.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Details<\/h4>\n\n\n\n<p>Tidyverse is a mix of a philosophy about trying to coerce your data into &#8220;tidy&#8221; format and a lot of tools in the shape of R functions in a lot of R packages (the main ones are pulled into an umbrella package &#8220;tidyverse&#8221; so using library(tidyverse) gets you all of those.  In many ways &#8220;tidy&#8221; data is just <a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/rectangular-data\/\" title=\"\">rectangular data tables<\/a> but this isn&#8217;t about restricting you to that rectangular model in the way that, say, SPSS tends to, it&#8217;s about understanding some simple principles actually, for me, largely about handling data that is far more messy than tidy but having a set of tools and a way of thinking that helps me do that well.  There are parallels with languages like SQL (Structured Query Language) designed to handle <a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/rdbms-relational-database-management-system\/\" title=\"\">RDBMS<\/a> data but I find the tidyverse language structure far easier to remember and use than SQL. <\/p>\n\n\n\n<p>The other great strength of tidyverse is that it&#8217;s closely linked with the ggplot2 package which again has a quite a learning curve as you switch from traditional ways of creating graphics and plots to the &#8220;grammar of graphics&#8221; created by <a href=\"https:\/\/en.wikipedia.org\/wiki\/Leland_Wilkinson\" target=\"_blank\" rel=\"noopener\" title=\"\">Leland Wilkinson<\/a>.  &#8220;Grammar of Graphics&#8221; gave us the &#8220;gg&#8221; in the ggplot2 package and ggplot() function).  <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Try also<\/h4>\n\n\n\n<p><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/dataset-and-database\/\" title=\"\">Dataset and database<\/a><br><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/multilevel-models-modelling-mlm\/\" title=\"\">Multi-level modelling<\/a><br><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/nested-data-nesting\/\" title=\"\">Nested data, nesting<\/a><br><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/rdbms-relational-database-management-system\/\">RDBMS: Relational Database Management Systems<\/a><br><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/rectangular-data\/\" title=\"\">Rectangular data<\/a><br><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/spss\/\" title=\"\">SPSS<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Chapters<\/h4>\n\n\n\n<p>Not in the OMbook!<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Online resources<\/h4>\n\n\n\n<p>Rblog posts:<br>* <a href=\"https:\/\/www.psyctc.org\/Rblog\/posts\/2021-02-07-why-pipe-why-the-tidyverse\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Why pipe? Why tidyverse?<\/a><br>* <a href=\"https:\/\/www.psyctc.org\/Rblog\/posts\/2021-02-10-more-piping-introducing-rowwise\/\" target=\"_blank\" rel=\"noopener\" title=\"\">More piping and rowwise()<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Dates<\/h4>\n\n\n\n<p>First created 2.v.24.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is really just amusement but largely switching the way I use R from &#8220;base\/standard R&#8221; to using the tidyverse has been a real education for me and has made it much easier for me to handle complex multilevel data from services. Details Tidyverse is a mix of a philosophy about trying to coerce your &hellip; <a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/tidyverse\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Tidyverse<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[18],"glossaries":[],"doc_tag":[],"knowledge_base":[],"class_list":["post-4230","docs","type-docs","status-publish","hentry","doc_category-om-book"],"year_month":"2026-04","word_count":282,"total_views":"475","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"chris","author_nicename":"chris","author_url":"https:\/\/www.psyctc.org\/psyctc\/author\/chris\/"},"doc_category_info":[{"term_name":"All OM book glossary entries","term_url":"https:\/\/www.psyctc.org\/psyctc\/glossary\/non-knowledgebase\/om-book\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/docs\/4230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/comments?post=4230"}],"version-history":[{"count":2,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/docs\/4230\/revisions"}],"predecessor-version":[{"id":4232,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/docs\/4230\/revisions\/4232"}],"wp:attachment":[{"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/media?parent=4230"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/doc_category?post=4230"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/glossaries?post=4230"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/doc_tag?post=4230"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/knowledge_base?post=4230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}