Blog Archives

(Much) faster unnesting with data.table

Today I was struggling with a relatively simple operation: unnest() from the tidyr package. What it’s supposed to do is pretty simple. When you have a data.frame where one or multiple columns are lists, you can unlist these columns while duplicating the information in other columns if the length of an element is larger than 1. library(tibble) df

Read more »

Introducing rwhatsapp

Introducing rwhatsapp

I’m happy to announce that rwhatsapp is now on CRAN. After being tested by users on GitHub for a year now, I decided it is time to make the package available to a wider audience. The goal of the package is to make working with ‘WhatsApp’ chat logs as easy as possible. ‘WhatsApp’ seems to become increasingly important not just as a...

Read more »

Introducing rwhatsapp

Introducing rwhatsapp

I’m happy to announce that rwhatsapp is now on CRAN. After being tested by users on GitHub for a year now, I decided it is time to make the package available to a wider audience. The goal of the package is to make working with ‘WhatsApp’ chat logs as easy as possible. ‘WhatsApp’ seems to become increasingly important not just as a...

Read more »

You R my Valentine!

You R my Valentine!

Today is Valentine’s Day. And since both I and my sweetheart are R enthusiasts, here is how to say “I love you” using a statistical programming language: library("dplyr") library("gganimate") library("ggplot2") hrt_dat % bind_rows(data.frame(t = rep(max(.$t), 300))) %__% mutate(xhrt = 16 * sin(t) ^ 3, yhrt = 13 * cos(t) - 5 *...

Read more »

You R my Valentine!

You R my Valentine!

Today is Valentine’s Day. And since both I and my sweetheart are R enthusiasts, here is how to say “I love you” using a statistical programming language: library("dplyr") library("gganimate") library("ggplot2") hrt_dat % bind_rows(data.frame(t = rep(max(.$t), 300))) %__% mutate(xhrt = 16 * sin(t) ^ 3, yhrt = 13 * cos(t) - 5 *...

Read more »

Smarter Wordclouds

Smarter Wordclouds

Some time ago, I saw a presentation by Wouter van Atteveldt who showed that wordclouds aren’t necessarily stupid. I was amazed since wordclouds were one of the first things I ever did in R and they are still often shown in introductions to text analysis. But the way they are mostly done is, in fact, not very informative. Because the position of...

Read more »

Smarter Wordclouds

Smarter Wordclouds

Some time ago, I saw a presentation by Wouter van Atteveldt who showed that wordclouds aren’t necessarily stupid. I was amazed since wordclouds were one of the first things I ever did in R and they are still often shown in introductions to text analysis. But the way they are mostly done is, in fact, not very informative. Because the position of...

Read more »

(Mis)using Discourse Network Analyzer for manual coding

(Mis)using Discourse Network Analyzer for manual coding

For my PhD project, I want to use Supervised Machine Learning (SML) to replicate my manual coding efforts onto a larger data set. That means, however, that I need to put in some manual coding effort before the SML algorithms can do their magic! I used ...

Read more »

(Mis)using Discourse Network Analyzer for manual coding

(Mis)using Discourse Network Analyzer for manual coding

For my PhD project, I want to use Supervised Machine Learning (SML) to replicate my manual coding efforts onto a larger data set. That means, however, that I need to put in some manual coding effort before the SML algorithms can do their magic! I used ...

Read more »

(Mis)using Discourse Network Analyzer for manual coding

(Mis)using Discourse Network Analyzer for manual coding

For my PhD project, I want to use Supervised Machine Learning (SML) to replicate my manual coding efforts onto a larger data set. That means, however, that I need to put in some manual coding effort before the SML algorithms can do their magic! I used ...

Read more »

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)