Articles by

String Manipulation with Stringr

February 24, 2021 |

What is a string? In coding, strings, also known as character strings, are sequences of characters that are surrounded by quotation marks. This often includes letters and can include numbers. Character strings are often used for names and categorizing data and it can be extremely useful to learn how to ... [Read more...]

The Perfect Taylor Swift Playlist?

November 18, 2020 |

One thing I really admire about Taylor Swift is her ability to tell a story. The way she weaves in details and characters, you feel like each song is about you or a friend. I think one reason for her popularity is because her music is so relateable. In particular, ...
[Read more...]

How and When to Use For Loops

September 16, 2020 |

What is a for loop? A for loop is a process that lets you automate a portion of your code by repeating a sequence of instructions a specified number of times. There are a couple of different types of loops (while, for, repeat) and they all have the sam... [Read more...]

Introduction to ggplot2

August 17, 2020 |

TL:DR: If you are new to ggplot, welcome! If you are used to base R, its probably going to take awhile for you to get the hang of the syntax, but trust me, it’s worth it. GGplot is the tidyverse package for making graphics and you can control ...
[Read more...]

Another COVID-19 Dashboard

July 23, 2020 |

Recently there have been an overwhelming number of dashboards created to display COVID-19 data, so I decided to try my hand at it as well. I created a dashboard that allows you to search for a state and look at the breakdown of cases and deaths by coun... [Read more...]

Using RStudio

July 13, 2020 |

The purpose of this tutorial is to share some “hidden” tricks in RStudio that can improve coding efficiency and overall user experience. Customizing your Console You can customize your RStudio setup and layout in the Global Options. You can...
[Read more...]

Learn Tidyverse: Pivot Functions

July 13, 2020 |

TL:DR : We will be using the pivot longer and pivot wider functions to change the shape of our dataframe. It is currently in a wide format, where there are multiple observations for each data point. For each individiual plant observed, sepal lengt...
[Read more...]

New Color Palette for R

May 22, 2019 |

As I was preparing some graphics for a presentation recently, I started digging into some of the different color palette options. My motivation was entirely about creating graphics that weren't too visually overwhelming, which I found the default "rain... [Read more...]

Statistics Sunday: Creating a Stacked Bar Chart for Rank Data

January 27, 2019 |

Stacked Bar Chart for Rank Data At work on Friday, I was trying to figure out the best way to display some rank data. What I had were rankings from 1-5 for 10 factors considered most important in a job (such as Salary, Insurance Benefits, and the Opportunity to Learn), meaning ...
[Read more...]

Statistics Sunday: Introduction to Regular Expressions

November 25, 2018 |

In my last Statistics Sunday post, I briefly mentioned the concept of regular expressions, also known as regex (though note that in some contexts, these refer to different things - see here). A regular expression is a text string, which you ask your program to match. You can use this ...
[Read more...]

Statistics Sunday: Some Psychometric Tricks in R

October 14, 2018 |

Statistics Sunday: Some Psychometrics Tricks in R It's been a long time since I've posted a Statistics Sunday post! Now that I'm moved out of my apartment and into my house, I have a bit more time on my hands, but work has been quite busy. Today, I'm preparing for 2 ...
[Read more...]

Statistics Sunday: What Should I Read Next?

September 16, 2018 |

When You Need a New Book to Read I log all of my books on Goodreads. On top of that, whenever I hear about a new book I have to read, I add it on Goodreads, so I remember it. Of course, this means my Goodreads bookshelves are a little ... [Read more...]

Statistics Sunday: Visualizing Regression

August 27, 2018 |

Statistics Sunday: Visualizing Regression I had some much needed downtime this weekend, after an exhausting week, along with some self-care - Saturday I had a one-hour deep tissue massage, which left me a little bruised but much more relaxed, and Sunday I spent a few hours in the salon chair ...
[Read more...]

Topics and Categories in the Russian Troll Tweets

August 17, 2018 |

Topics and Categories in the Russian Troll Tweets I decided to return to the analysis I conducted for the IRA tweets dataset. (You can read up on that analysis and R code here.) Specifically, I returned to the LDA results, which looked like they lined up pretty well with the ...
[Read more...]

Statistics Sunday: Getting Started with the Russian Tweet Dataset

August 12, 2018 |

IRA Tweet Data You may have heard that two researchers at Clemson University analyzed almost 3 millions tweets from the Internet Research Agency (IRA) - a "Russian troll factory". In partnership with FiveThirtyEight, they made all of their data available on GitHub. So of course, I had to read the files ...
[Read more...]
1 2 3 4

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)