ds4psy version 0.7.0
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:
Major changes
-
Breaking change: The function
read_ascii()was split into 2 parts (to enable independent access to their functionality):- A new
read_ascii()version reads text (from file or user input) into a character string; - A new
map_text_coord()function converts a text string into a table of individual characters (with x/y-coordinates).
- A new
-
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) tomap_text_coord().plot_charmap()plots character maps as text and tile plots (with aesthetics for labels and tiles).
- Added
count_chars_words()for counting the frequency of both characters and words in text strings.
Minor changes
- added
plot_marargument totheme_empty() - added functionality to
plot_text()(but seeplot_chars()) - added utility functions for locating, identifying, and assigning vectors (of color/angle maps) to text strings matching a pattern
- added
text_to_chars()and related functions for converting character strings (e.g., text to characters, preserving spaces) - added utility functions for counting the frequency of characters and words in text strings
- renamed
is_vector()tois_vect()asis_vector()function is defined by the purrr package
Details
- signal deprecation status in
plot_text() - bug fix: removed marked UTF-8 strings from
Trumpisms
The current development version of ds4psy is hosted at https://github.com/hneth/ds4psy/.