Data science for psychologists (ds4psy): R package supporting book and course
Bot releases are hidden (Show)
Release of ds4psy (1.0.0) on CRAN fixes some bugs, but mostly acknowledges the package's stable state. [2023-09-15]
Changes since last release:
The current development version of ds4psy is hosted at https://github.com/hneth/ds4psy/.
Published by hneth almost 2 years ago
Release of ds4psy (0.9.0) on CRAN adds functionality, implements minor changes, and fixes some bugs. [2022-10-20]
Changes since last release:
base2dec()
and dec2base()
functions for converting numerals into non-decimal notations, and back.chars_to_text()
and text_to_chars()
functions for converting character vectors into text, and back.rseed
argument to map_text_regex()
and plot_chars()
for reproducible results.collapse_chars()
as a wrapper around paste()
with a collapse
argument.The current development version of ds4psy is hosted at https://github.com/hneth/ds4psy/.
Published by hneth almost 2 years ago
Release of ds4psy (0.8.5) on GitHub adds functionality, implements minor changes, and fixes some bugs. [2022-10-20]
Changes since last release:
base2dec()
and dec2base()
functions for converting numerals into non-decimal notations, and back.chars_to_text()
and text_to_chars()
functions for converting character vectors into text, and back.rseed
argument to map_text_regex()
and plot_chars()
for reproducible results.collapse_chars()
as a wrapper around paste()
with a collapse
argument.The current development version of ds4psy is hosted at https://github.com/hneth/ds4psy/.
Published by hneth over 2 years ago
Release of ds4psy (0.8.0) on CRAN adds functionality, increases modularity, and fixes some bugs. [2022-04-08]
Changes since last release:
invert_rules()
function (for decoding encoded messages by inverting the rules used for encoding).words_to_text()
function as the inverse of text_to_words()
.zodiac()
function (with multiple outputs formats and options for redefining date boundaries).table9
as a variant of tidyr::table2
as a 3-dimensional array (xtabs).capitalize()
to also work for character vectors (i.e., setting the case of each element to upper- or lowercase).The current development version of ds4psy is hosted at https://github.com/hneth/ds4psy/.
Published by hneth over 3 years ago
Release of ds4psy (0.7.0) on CRAN adds functionality, increases modularity, and fixes a bug in text data. [2021-05-12]
Changes since last release:
Breaking change: The function read_ascii()
was split into 2 parts (to enable independent access to their functionality):
read_ascii()
version reads text (from file or user input) into a character string;map_text_coord()
function converts a text string into a table of individual characters (with x/y-coordinates).Added plot_chars()
for plotting characters of text and visualizing pattern matches (specified as regular expressions) by highlighting labels (color/angle) or background tiles (color). The function uses 2 auxiliary functions:
map_text_regex()
adds pattern matching options (for colors and angles) to map_text_coord()
.plot_charmap()
plots character maps as text and tile plots (with aesthetics for labels and tiles).count_chars_words()
for counting the frequency of both characters and words in text strings.plot_mar
argument to theme_empty()
plot_text()
(but see plot_chars()
)text_to_chars()
and related functions for converting character strings (e.g., text to characters, preserving spaces)is_vector()
to is_vect()
as is_vector()
function is defined by the purrr packageplot_text()
Trumpisms
The current development version of ds4psy is hosted at https://github.com/hneth/ds4psy/.
Published by hneth over 3 years ago
Release of ds4psy (0.6.0) on CRAN adds functionality, updates data, and reduces dependencies. [2021-04-08]
Changes since last release:
is_vector()
to check for vectors (i.e., atomic vectors or lists)get_set()
for motivating visualizationsfame
and Trumpisms
theme_empty()
The current development version of ds4psy is hosted at https://github.com/hneth/ds4psy/.
Published by hneth about 4 years ago
Release of ds4psy (0.5.0) on CRAN: https://CRAN.R-project.org/package=ds4psy. [2020-09-01]
This release mostly provides additional functions for dates and times:
diff_dates()
to compute temporal differences between dates (in human time units of years, months, and days)diff_times()
to compute temporal differences between times (in human time units of years, ..., and seconds)diff_tz()
to compute time difference based on time zone differencesdays_in_month()
to obtain number of days in months for given dates (accounting for leap years)Minor changes include:
is_equal()
and num_equal()
to check pairwise (near) equality of vectorstheme_clean()
as an alternative to theme_ds4psy()
is.wholenumber()
to is_wholenumber()
sample_date()
and sample_time()
to align with sample()
theme_ds4psy()
to provide control over colors of backgrounds, lines, and text elementsfame
dataPlus some bug fixes (see NEWS.md
).
Published by hneth over 4 years ago
Release of ds4psy (0.4.0) on CRAN: https://CRAN.R-project.org/package=ds4psy. [2020-07-06]
This version adds support for processing data with dates and times:
Published by hneth over 4 years ago
Release of ds4psy (0.3.0) on CRAN: https://CRAN.R-project.org/package=ds4psy. [2020-06-15]
This release adds support for text processing.
The current version of the textbook Data Science for Psychologists is still available at https://bookdown.org/hneth/ds4psy/.
Published by hneth over 4 years ago
A new release of ds4psy (version 0.2.1) is available on CRAN: https://CRAN.R-project.org/package=ds4psy. [2020-05-06]
This is a maintenance release to remove some dependencies, fix bugs on CRAN platforms, and add some datasets.
An updated version of the textbook Data Science for Psychologists is still available at https://bookdown.org/hneth/ds4psy/.
Published by hneth over 4 years ago
A new version 0.2.0 of ds4psy has been released on CRAN on 2020-04-19. This release adds functionality (mostly new data and functions) and fixes some bugs (see NEWS file for details).
This version of the R package ds4psy supports the 2020 version of the textbook Data Science for Psychologists available at https://bookdown.org/hneth/ds4psy/.
Published by hneth about 5 years ago
The R package ds4psy was released on CRAN on August 10, 2019.
The initial version of the package contains all data sets required for the examples and exercises in the book Data Science for Psychologists, which is freely available at https://bookdown.org/hneth/ds4psy/.
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 graphics and text-manipulation that are used in the book and its exercises.