Skip to content

ds4psy version 0.7.0

Choose a tag to compare

@hneth hneth released this 12 May 07:18

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):

    1. A new read_ascii() version reads text (from file or user input) into a character string;
    2. A new 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:

    1. map_text_regex() adds pattern matching options (for colors and angles) to map_text_coord().
    2. 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_mar argument to theme_empty()
  • added functionality to plot_text() (but see plot_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() to is_vect() as is_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/.