{"id":3692,"date":"2023-11-30T21:08:22","date_gmt":"2023-11-30T20:08:22","guid":{"rendered":"https:\/\/www.psyctc.org\/psyctc\/?post_type=docs&#038;p=3692"},"modified":"2026-11-14T14:09:10","modified_gmt":"2026-11-14T13:09:10","password":"","slug":"rectangular-data","status":"publish","type":"docs","link":"https:\/\/www.psyctc.org\/psyctc\/glossary2\/rectangular-data\/","title":{"rendered":"Rectangular data"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Exactly what it says: a dataset that has a rectangular format meaning that all the rows have the same number of columns.  This is typical spreadsheet layout.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In our field rows usually have data from individuals or from occasions for individuals, i.e. more than one row per individual: so-called &#8220;nested data&#8221;.  The columns are variables. So every row has the number of variables and they are of the same type for each row, e.g. &#8220;gender&#8221;, &#8220;age&#8221;, &#8220;reason for attending&#8221;.  There may be &#8220;missing data&#8221; in some columns for some rows but to be rectangular data every row has the same columns\/variables even if some values may be missing.  Such data is also sometimes called, perhaps with some or more condescension &#8220;spreadsheet data&#8221; or, even worse, &#8220;Excel data&#8221; or &#8220;SPSS data&#8221;.  &#8220;Data table&#8221;, &#8220;dataframe&#8221;, &#8220;data frame&#8221;, &#8220;datatable&#8221; or even &#8220;tibble&#8221; are other synonyms though those tend to be used more respectfully!<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Details<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Rectangular data is easy to think about and, in principle at least, easy to process and lends itself well to conventional statistical methods. Clearly narratives and much qualitative data has no such imposed structure and is hence sometimes called &#8220;ill structured data&#8221;, &#8220;list data&#8221; or simply &#8220;narrative&#8221; or &#8220;qualitative&#8221; data with the general assumption it won&#8217;t have any rectangular form.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Of course, real life MH and therapy data is never purely rectangular.  In the quantitative world this fact means that much MH\/therapy is stored in RMDBs: Relational, Multi-dimensional DataBases which consist of many individually rectangular datatables which are &#8220;relationally&#8221; linked, for instance one table might contain unchanging demographics and details about therapists, another might contain potentially changing data for them: current and historical contracts\/sessions, the two would be linked to each therapist by a unique ID per therapist, other tables would contain information about clients, again often a single table for unchanging data: name, date of birth perhaps, then perhaps a number of ones for different changing data: residence, occupation, therapy episodes, therapy sessions, change measure completions etc.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Try also<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/dataset-and-database\/\">Dataset and database<\/a><br><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/long-thin-format-data\/\">Long (\u201cthin\u201d) format data<\/a><br><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/nested-data-nesting\/\">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\/spreadsheet-software-not-just-excel\/\">Spreadsheet software<\/a><br><a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/wide-format-data\/\">Wide format data<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Chapters<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Touched on in Chapter 8 about service level data.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Online resources<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Where my <a href=\"https:\/\/shiny.psyctc.org\" target=\"_blank\" rel=\"noopener\">shiny apps<\/a> analyse uploaded data they all expect rectangular data and allow uploading of LibreOffice ods and of Excel xls and xlst data but I do recommend that you use CSV if you can.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Dates<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">First created 30.xi.23, updated and improved 14.xi.26.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Exactly what it says: a dataset that has a rectangular format meaning that all the rows have the same number of columns. This is typical spreadsheet layout. In our field rows usually have data from individuals or from occasions for individuals, i.e. more than one row per individual: so-called &#8220;nested data&#8221;. The columns are variables. &hellip; <a href=\"https:\/\/www.psyctc.org\/psyctc\/glossary2\/rectangular-data\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Rectangular data<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[18],"doc_tag":[],"glossaries":[],"knowledge_base":[],"class_list":["post-3692","docs","type-docs","status-publish","hentry","doc_category-om-book"],"year_month":"2026-11","word_count":406,"total_views":"1575","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\/3692","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=3692"}],"version-history":[{"count":4,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/docs\/3692\/revisions"}],"predecessor-version":[{"id":5601,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/docs\/3692\/revisions\/5601"}],"wp:attachment":[{"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/media?parent=3692"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/doc_category?post=3692"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/doc_tag?post=3692"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/glossaries?post=3692"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/www.psyctc.org\/psyctc\/wp-json\/wp\/v2\/knowledge_base?post=3692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}