{"id":14066693,"url":"https://github.com/2DegreesInvesting/ds.database","last_synced_at":"2025-07-29T23:32:03.405Z","repository":{"id":99954488,"uuid":"530535305","full_name":"2DegreesInvesting/ds.database","owner":"2DegreesInvesting","description":null,"archived":true,"fork":false,"pushed_at":"2022-09-27T13:54:16.000Z","size":2820,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-04T06:36:43.394Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2DegreesInvesting.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-08-30T06:57:27.000Z","updated_at":"2023-01-31T03:50:52.000Z","dependencies_parsed_at":"2023-05-11T06:30:17.410Z","dependency_job_id":null,"html_url":"https://github.com/2DegreesInvesting/ds.database","commit_stats":{"total_commits":72,"total_committers":1,"mean_commits":72.0,"dds":0.0,"last_synced_commit":"5909697a43c30852915751819cf5c18766c4c7c8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/2DegreesInvesting/ds.database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2DegreesInvesting%2Fds.database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2DegreesInvesting%2Fds.database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2DegreesInvesting%2Fds.database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2DegreesInvesting%2Fds.database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2DegreesInvesting","download_url":"https://codeload.github.com/2DegreesInvesting/ds.database/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2DegreesInvesting%2Fds.database/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267780014,"owners_count":24143201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T07:05:13.189Z","updated_at":"2025-07-29T23:32:02.960Z","avatar_url":"https://github.com/2DegreesInvesting.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\"\n)\n```\n\n# Relational data\n\nThe goal of this series is help you understand and work with multiple,\nrelated tables of data.\n\nAt the end of this series you will be able to do things like these:\n\n* Understand and use relational data with the dplyr package.\n* Define and use relational data models with the dm package.\n* Use remote databases.\n\n## Who is the audience?\n\nAnyone who works with two or more related tables of data.\n\n## Why is this important?\n\n\u003e It's rare that a data analysis involves only a single table of\ndata. Typically you have many tables of data, and you must combine them to\nanswer the questions that you're interested in. Collectively, multiple\ntables of data are called relational data because it is the relations,\nnot just the individual datasets, that are important.  \n-- https://r4ds.had.co.nz/relational-data.html\n\n## Syllabus\n\n### Relational data with dplyr\n\nThis meetup covers how to work with relational data with dplyr.\n\nObjectives:\n\n* Understand what is relational data.\n* Understand and use the different types of joins.\n* Understand what happens when a key has duplicated values.\n* Learn how to validate the keys to avoid problems.\n\n### Work with relational data with the dm package\n\nThis meetup covers how to work with relational package with the dm package.\n\nObjectives:\n\n* Create, visualize, check, and use complex datasets.\n\n### Validating data quality\n\nThis meetup covers how to validate the quality of a dataset.\n\nObjectives:\n\n* Validate data quality with the [pointblank package](https://rich-iannone.github.io/pointblank/).\n* Validate data quality with lower-level, developer-oriented tools.\n\n### Using a Relational Database Management System (RDBMS)\n\nThis meetup covers how to copy a data model to a RDBMS and how to later use it.\n\nObjectives:\n\n* Connect to a RDBMS (an .sqlite file).\n* Copy a data model to a RDBMS.\n* Use the RDBMS with dplyr.\n* Use the RDBMS with dm.\n\n## Resources\n\n* YouTube [playlist](https://bit.ly/ds-incubator-videos).\n* The\n[ds-incubator](https://github.com/2DegreesInvesting/ds-incubator#ds-incubator)\nproject.\n* [Ideas](https://bit.ly/dsi-ideas) for future meetups.\n* [Relational data](https://r4ds.had.co.nz/relational-data.html).\n* [The dm package](https://cynkra.github.io/dm/).\n* [The dbplyr package](https://dbplyr.tidyverse.org/).\n\n## Thanks\n\nTanks Mirja for motivating me to learn more about relational data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2DegreesInvesting%2Fds.database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2DegreesInvesting%2Fds.database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2DegreesInvesting%2Fds.database/lists"}