{"id":13857379,"url":"https://github.com/hneth/ds4psy","last_synced_at":"2025-04-14T00:44:14.184Z","repository":{"id":40458410,"uuid":"123286808","full_name":"hneth/ds4psy","owner":"hneth","description":"Data science for psychologists (ds4psy): R package supporting book and course ","archived":false,"fork":false,"pushed_at":"2025-02-12T20:34:10.000Z","size":210749,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T22:47:06.797Z","etag":null,"topics":["data-literacy","data-science","education","exploratory-data-analysis","psychology","r","r-package","social-sciences","visualisation"],"latest_commit_sha":null,"homepage":"https://bookdown.org/hneth/ds4psy/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hneth.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-28T13:11:53.000Z","updated_at":"2025-02-13T22:23:46.000Z","dependencies_parsed_at":"2023-02-14T19:46:32.118Z","dependency_job_id":"b9d35321-118b-44e9-b7ca-36f251dfd9bb","html_url":"https://github.com/hneth/ds4psy","commit_stats":{"total_commits":2101,"total_committers":2,"mean_commits":1050.5,"dds":0.004759638267491706,"last_synced_commit":"36205962dbc82fb8438e37c8fae342955297f3bf"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hneth%2Fds4psy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hneth%2Fds4psy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hneth%2Fds4psy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hneth%2Fds4psy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hneth","download_url":"https://codeload.github.com/hneth/ds4psy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804721,"owners_count":21164127,"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","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":["data-literacy","data-science","education","exploratory-data-analysis","psychology","r","r-package","social-sciences","visualisation"],"created_at":"2024-08-05T03:01:35.027Z","updated_at":"2025-04-14T00:44:14.165Z","avatar_url":"https://github.com/hneth.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit THIS (Rmd) file. --\u003e\n\n\u003c!-- Devel badges start: --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/ds4psy)](https://CRAN.R-project.org/package=ds4psy)\n[![Downloads/month](https://cranlogs.r-pkg.org/badges/ds4psy?color='00a9e0')](https://www.r-pkg.org/pkg/ds4psy)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7229812.svg)](https://doi.org/10.5281/zenodo.7229812)\n\u003c!-- Devel badges end. --\u003e\n\n\u003c!-- Release badges start: --\u003e\n\u003c!-- [![CRAN status](https://www.r-pkg.org/badges/version/ds4psy)](https://CRAN.R-project.org/package=ds4psy) --\u003e\n\u003c!-- [![Total downloads](https://cranlogs.r-pkg.org/badges/grand-total/ds4psy?color='00a9e0')](https://www.r-pkg.org/pkg/ds4psy) --\u003e\n\u003c!-- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7229812.svg)](https://doi.org/10.5281/zenodo.7229812) --\u003e\n\u003c!-- Release badges end. --\u003e\n\n\u003c!-- ALL status badges: \n[![CRAN status](https://www.r-pkg.org/badges/version/ds4psy)](https://CRAN.R-project.org/package=ds4psy)\n[![Build status](https://travis-ci.org/hneth/ds4psy.svg?branch=master)](https://travis-ci.org/hneth/ds4psy)\n[![Downloads/month](https://cranlogs.r-pkg.org/badges/ds4psy?color=brightgreen)](https://www.r-pkg.org/pkg/ds4psy)\n[![Total downloads](https://cranlogs.r-pkg.org/badges/grand-total/ds4psy?color=brightgreen)](https://www.r-pkg.org/pkg/ds4psy)\n[![Rdoc](https://www.rdocumentation.org/badges/version/ds4psy)](https://www.rdocumentation.org/packages/ds4psy)\n--\u003e\n\n```{r setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\"\n)\n```\n\n\u003c!-- ds4psy logo 1: --\u003e\n\u003c!-- \u003ca href=\"https://bookdown.org/hneth/ds4psy/\"\u003e --\u003e\n\u003c!-- \u003cimg src = \"./inst/images/logo.png\" alt = \"ds4psy\" width = \"150px\" align = \"right\" style = \"width: 150px; float: right; border:11;\"/\u003e --\u003e\n\u003c!-- \u003c/a\u003e --\u003e\n\n\n# Data Science for Psychologists (ds4psy) \u003cimg src = \"./inst/images/logo.png\" align = \"right\" alt = \"ds4psy\" width = \"150px\" /\u003e\n\n\nWelcome to the R package **ds4psy** \u0026mdash; a software companion to the book and course [Data Science for Psychologists](https://bookdown.org/hneth/ds4psy/). \n\nThis R package provides datasets and functions used in the [ds4psy book](https://bookdown.org/hneth/ds4psy/) and corresponding course curricula. \nThe book and course introduce the principles and methods of data science for students of psychology and other biological or social sciences. \n\n\u003c!-- Description of ds4psy package:  --\u003e\n\n\u003c!-- All datasets and functions required for the examples and exercises of the book \"Data Science for Psychologists\" (by Hansjoerg Neth, Konstanz University, 2023), freely available at \u003chttps://bookdown.org/hneth/ds4psy/\u003e. The book and course introduce principles and methods of data science to students of psychology and other biological or social sciences. The 'ds4psy' package primarily provides datasets, but also functions for data generation and manipulation (e.g., of text and time data) and graphics that are used in the book and its exercises. All functions included in 'ds4psy' are designed to be explicit and instructive, rather than efficient or elegant.  --\u003e\n\n\n## Installation\n\nThe current release of **ds4psy** is available from [CRAN](https://CRAN.R-project.org/) at \u003chttps://CRAN.R-project.org/package=ds4psy\u003e:\n\n```{r install_CRAN, echo = TRUE, eval = FALSE}\ninstall.packages('ds4psy')  # install ds4psy from CRAN client\nlibrary('ds4psy')           # load to use the package\n```\n\nThe current development version of **ds4psy** can be installed from its [GitHub](https://github.com) repository at \u003chttps://github.com/hneth/ds4psy/\u003e: \n\n```{r install_github, echo = TRUE, eval = FALSE}\n# install.packages('devtools')  # (if not installed yet)\ndevtools::install_github('hneth/ds4psy')\nlibrary('ds4psy')  # load to use the package\n```\n\nThe most recent version of the [ds4psy book](https://bookdown.org/hneth/ds4psy/) is freely available at \u003chttps://bookdown.org/hneth/ds4psy/\u003e. \n\n\n## Course Coordinates\n\n\u003c!-- uni.kn logo, but link to SPDS: --\u003e  \n\u003c!-- ![](./inst/images/uniKn_logo.png) --\u003e \n\u003ca href=\"https://www.spds.uni-konstanz.de\"\u003e\n\u003cimg src = \"./inst/images/uniKn_logo.png\" alt = \"spds.uni.kn\" width = \"300px\" align = \"right\" style = \"width: 300px; float: right; border:20;\"/\u003e\n\u003c/a\u003e\n\n* PSY-15150, at the [University of Konstanz](https://www.uni-konstanz.de) is taught by [Hansjörg Neth](https://www.spds.uni-konstanz.de/hans-neth), [Social Psychology and Decision Sciences](https://www.spds.uni-konstanz.de), office\\ D507   \n\u003c!-- * Summer\\ 2022: Mondays, 13:30\u0026ndash;15:00, D430. --\u003e\n* The [ds4psy book](https://bookdown.org/hneth/ds4psy/) with examples and exercises is available at \u003chttps://bookdown.org/hneth/ds4psy/\u003e   \n* The [ds4psy](https://CRAN.R-project.org/package=ds4psy) R package is available at \u003chttps://CRAN.R-project.org/package=ds4psy\u003e   \n\n## Description\n\nThis book and course provide an introduction to data science that is tailored to the needs of students in psychology, but is also suitable for students of the humanities and other biological or social sciences. \nThis audience typically has some knowledge of statistics, but rarely an idea how data is prepared and shaped to allow for statistical testing. \nBy using various data types and working with many examples, we teach tools for transforming, summarizing, and visualizing data. \nBy keeping our eyes open for the perils of misleading representations, the book fosters fundamental skills of data literacy and cultivates reproducible research practices that enable and precede any practical use of statistics. \n\n### Audience \n\nStudents of psychology and other social sciences are trained to analyze data. But the data they learn to work with (e.g., in courses on statistics and empirical research methods) is typically provided to them and structured in a (rectangular or \"tidy\") format that presupposes many steps of data processing regarding the aggregation and spatial layout of variables.  When beginning to collect their own data, students inevitably struggle with these pre-processing steps which \u0026mdash; even for experienced data scientists \u0026mdash; tend to require more time and effort than choosing and conducting statistical tests. \n\nThis course develops the foundations of data analysis that allow students to collect data from real-world sources and transform and shape such data to answer scientific and practical questions. Although there are many good introductions to data science (e.g., [Grolemund \u0026 Wickham, 2017](https://r4ds.had.co.nz/)) they typically do not take into account the special needs \u0026mdash; and often anxieties and reservations \u0026mdash; of psychology students. As social scientists are not computer scientists, we introduce new concepts and commands without assuming a mathematical or computational background. Adopting a task-oriented perspective, we begin with a specific problem and then solve it with some combination of data collection, manipulation, and visualization. \n\n### Goals\n\nOur main goal is to develop a set of useful skills in analyzing real-world data and conducting reproducible research. Upon completing this course, you will be able to use R to read, transform, analyze, and visualize data of various types. Many interactive exercises allow students to continuously check their understanding, practice their skills, and monitor their progress.\n\n### Requirements\n\nThis course assumes some basic familiarity with statistics and the [R](https://www.R-project.org/) programming language, but enthusiastic programming novices are also welcome. \n\n\n## Resources  \n\nThis package and the corresponding book are still being developed and are updated as new materials become available.  \n  \n- A current version of the book is available at \u003chttps://bookdown.org/hneth/ds4psy/\u003e.  \n\n- There are 2 GitHub repositories to be distinguished:  \n\n    - The repository for the [ds4psy book](https://bookdown.org/hneth/ds4psy/) is \u003chttps://github.com/hneth/ds4psy\u003e (with an additional suffix `_book`).  \n\n    - The repository for the [ds4psy package](https://CRAN.R-project.org/package=ds4psy) is \u003chttps://github.com/hneth/ds4psy\u003e.  \n\n\u003c!-- - The current course syllabus and raw versions of all data files used in examples and exercises are available at \u003chttp://rpository.com/ds4psy/\u003e. --\u003e \n\n\n## References\n\n### Course materials\n\n- A current version of [Data science for psychologists](https://bookdown.org/hneth/ds4psy/) is available online at   \n\u003chttps://bookdown.org/hneth/ds4psy/\u003e.  \n\nThe book and course was originally based on the following textbook:  \n\n- Wickham, H., \u0026 Grolemund, G. (2017). _R for data science: Import, tidy, transform, visualize, and model data._ \nSebastopol, Canada: O'Reilly Media, Inc.  [Available online at [https://r4ds.had.co.nz](https://r4ds.had.co.nz/).]\n\n\u003c!-- Add blank line.  --\u003e\n\n### Software \n\nPlease install the following open-source programs on your computer:  \n\n- [The R Project for Statistical Computing](https://www.R-project.org/)\n\n- [R Studio](https://posit.co/products/open-source/rstudio/) is an integrated development environment (IDE) for R.\n\n- R packages of the [tidyverse](https://www.tidyverse.org/), [ds4psy](https://CRAN.R-project.org/package=ds4psy), and [unikn](https://CRAN.R-project.org/package=unikn): \n\n\u003c!-- Add blank line.  --\u003e\n\n```{r install-pkgs, eval = FALSE, warning = FALSE}\n# Tidyverse packages: \ninstall.packages('tidyverse')\n\n# Course packages: \ninstall.packages('ds4psy')  # datasets and functions\ninstall.packages('unikn')   # color palettes and functions\n```\n\n\n### Other resources\n\n#### R manuals and books\n\n- [R\\ manuals](https://cran.r-project.org/manuals.html) and related [books](https://www.r-project.org/doc/bib/R-books.html)\n\n- See the books on R and data science available on \u003chttps://bookdown.org\u003e. \n\n\u003c!-- - Zumel, N., \u0026 Mount, J. (2014). _Practical data science with R_. Greenwich, CT: Manning Publications. --\u003e\n\n\n#### Software tools \n\n- [Posit.co](https://posit.co/) resources: [RStudio IDE](https://posit.co/products/open-source/rstudio/), [R\\ Markdown](https://rmarkdown.rstudio.com/), and various [cheat sheets](https://posit.co/resources/cheatsheets/) \n\n- [Tidyverse](https://www.tidyverse.org/) resources: [blog](https://www.tidyverse.org/blog/) and [learn](https://www.tidyverse.org/learn/) \n\n\u003c!-- Add blank line.  --\u003e\n\n- See also the link collections at the end of each chapter of the [ds4psy book](https://bookdown.org/hneth/ds4psy/). \n\n\n## About\n\nIf you find these materials useful, or want to adopt or alter them for your purposes, please [let me know](https://www.spds.uni-konstanz.de/en/people). \n\n\n### Citation\n\n\u003c!-- ds4psy logo: --\u003e\n\u003ca href=\"https://bookdown.org/hneth/ds4psy/\"\u003e\n\u003cimg src = \"./inst/images/logo.png\" alt = \"ds4psy\" width = \"150px\" align = \"right\" style = \"width: 150px; float: right; border:11;\"/\u003e \n\u003c/a\u003e\n\nTo cite **ds4psy** in derivations and publications, please use:  \n\n- Neth, H. (2023). ds4psy: Data Science for Psychologists.  \nSocial Psychology and Decision Sciences, University of Konstanz, Germany.  \nTextbook and R package (version 1.0.0, September 15, 2023).  \nRetrieved from \u003chttps://bookdown.org/hneth/ds4psy/\u003e.  \ndoi\\ [10.5281/zenodo.7229812](https://doi.org/10.5281/zenodo.7229812)  \n\n\n\u003c!-- BibTeX reference: --\u003e\n\nA **BibTeX** entry for LaTeX users is: \n\n```{r bitex-entry, echo = FALSE, eval = FALSE, highlight = FALSE}\n@Manual{ds4psy,\n  title = {ds4psy: Data Science for Psychologists},\n  author = {Hansjörg Neth},\n  year = {2023},\n  organization = {Social Psychology and Decision Sciences, University of Konstanz},\n  address = {Konstanz, Germany},\n  note = {Textbook and R package (version 1.0.0, September 15, 2023)},\n  url = {https://bookdown.org/hneth/ds4psy/},\n  doi = {10.5281/zenodo.7229812}\n}\n```\n\n\u003c!-- BibTeX entry of current version:  --\u003e\n\n```{r pkg-unicol-citation, echo = FALSE, eval = TRUE, comment = \"\", highlight = FALSE}\n# From package citation:\nx \u003c- citation(package = 'ds4psy')\n# print(x, prefix = \"\")\nutils::toBibtex(x)\n```\n\n\nThe stable URL of the **ds4psy** R package is \u003chttps://CRAN.R-project.org/package=ds4psy\u003e.\n\n\n### License\n\n\u003c!-- (a) Use online image: --\u003e\n\n\u003ca rel=\"license\" href=\"https://creativecommons.org/licenses/by-nc-sa/4.0/\"\u003e\u003cimg alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png\" /\u003e\u003c/a\u003e\n\n\u003c!-- (b) Use local image: --\u003e\n\n\u003c!-- \u003ca rel=\"license\" href=\"https://creativecommons.org/licenses/by-nc-sa/4.0/\"\u003e\u003cimg alt=\"Creative Commons License\" style=\"border-width:0\" src = \"./images/CC_BY_NC_SA.png\" /\u003e\u003c/a\u003e --\u003e\n\n\n\u003c!-- License text:  --\u003e\n\n\u003cspan xmlns:dct=\"http://purl.org/dc/terms/\" property=\"dct:title\"\u003e**Data science for psychologists** (**ds4psy**)\u003c/span\u003e by \u003ca xmlns:cc=\"http://creativecommons.org/ns#\" href=\"https://neth.de\" property=\"cc:attributionName\" rel=\"cc:attributionURL\"\u003eHansjörg Neth\u003c/a\u003e is licensed under a \u003ca rel=\"license\" href=\"https://creativecommons.org/licenses/by-nc-sa/4.0/\"\u003eCreative Commons Attribution-NonCommercial-ShareAlike 4.0 International License\u003c/a\u003e. \n\n\n------ \n\n\u003c!-- Footer: --\u003e\n\n[File `README.md` updated on `r Sys.Date()`.]\n\n\u003c!-- eof. --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhneth%2Fds4psy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhneth%2Fds4psy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhneth%2Fds4psy/lists"}