Learn R Programming

WhatsR (version 1.0.6)

Parsing, Anonymizing and Visualizing Exported 'WhatsApp' Chat Logs

Description

Imports 'WhatsApp' chat logs and parses them into a usable dataframe object. The parser works on chats exported from Android or iOS phones and on Linux, macOS and Windows. The parser has multiple options for extracting smileys and emojis from the messages, extracting URLs and domains from the messages, extracting names and types of sent media files from the messages, extracting timestamps from messages, extracting and anonymizing author names from messages. Can be used to create anonymized versions of data.

Copy Link

Version

Install

install.packages('WhatsR')

Monthly Downloads

250

Version

1.0.6

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Julian Kohne

Last Published

July 14th, 2025

Functions in WhatsR (1.0.6)

plot_messages

Visualizing the number of sent messages per person in 'WhatsApp' chat logs
summarize_chat

Basic 'WhatsApp' chat log Statistics
plot_network

Visualizing the network of consecutive replies in 'WhatsApp' chat logs
plot_replytimes

Visualizing replytimes in 'WhatsApp' chat logs
plot_smilies

Visualize smilies used in 'WhatsApp' chat logs
plot_tokens

Visualizing token distribution per person
plot_tokens_over_time

Distribution of Tokens over time
plot_lexical_dispersion

Lexical disperson plots for keywords in 'WhatsApp' chat logs
parse_android

Parsing raw 'WhatsApp' chat logs according to Android text structure
plot_locations

Plotting locations sent in 'WhatsApp' chat logs on maps
parse_ios

Parsing raw 'WhatsApp' chat log according to iOs text structure
plot_media

Visualizing media files in 'WhatsApp' chat logs if chats were exported with media files
plot_emoji

Plotting emoji distributions in 'WhatsApp' chat logs
parse_chat

Parsing exported 'WhatsApp' chat logs as a dataframe
download_emoji

Scraping a dictionary of emoji from https://www.unicode.org/
plot_links

Visualizing links in 'WhatsApp' chat logs
create_chatlog

Creating test data in the structure of 'WhatsApp' chat logs
tailor_chat

Restricting chat logs to certain authors or timeframes.
summarize_tokens_per_person

Token Distributions for sent messages
plot_wordcloud

Wordclouds for 'WhatsApp' chat logs