Skip to content
Coming soon: Ally. Your guide to the world of AI and R. Learn More →
R for the Rest of Us Logo

Tips and Tricks

How R Has Been Used to Look at Issues of Race and Policing

June 15, 2020

The last few weeks have brought global protests over police violence against black people and other people of color. These protests have sprung up in response to the death of George Floyd, but their size shows that they are about more than the brutal killing of one man. The breadth and depth of a complex and multifaceted problem such as police violence is often hard to quantify. That's why it's so important that groups exist that are collecting, organizing, and sharing data related to police...

Why I'm Donating 1% of Sales to Important Causes

June 1, 2020

For a while now, I've been considering donating revenue from my business to support groups working for social justice. The murder of George Floyd and the protests that have sprung up in its aftermath have convinced me that it is time to do this. Starting today, I'm donating 1% of all sales of online courses to groups working to bring about a more just society. In the future, I'll support a range of organizations, but I'm going to begin by supporting the work of the Equal Justice Initiative....

How to Add Color to Titles Using the ggtext Package

May 12, 2020

If you read experts on data visualization, you'll start to see some common suggestions. One of these is use titles not just to describe your chart, but to explain your findings. Instead of generic titles like "Change in Math Scores, 2017-2018 to 2018-2019," they suggest, try something like, "Most Students Improved Their Math Scores From Last Year to This Year." In addition to using text in this way, data viz experts also suggest using color to highlight findings. See, for example, this...

How to Download Data in R

April 28, 2020

When you work with most data analysis tools, the first step in any project is to download your data. Your workflow might look something like this: Go to the website where the data is located Find the data you need Download the data to your computer Copy the data to where you need to in order to begin analysis With R, it’s different. You can download data from within R itself, as I show in this video demonstration (which, incidentally, is from my upcoming Going Deeper with R course). There are...

Analyzing the R for the Rest of Us Audience Survey

April 11, 2020

In February, I asked you to help me figure out what to do next with R for the Rest of Us. As I wrote at the time: Moving forward, I want to focus my efforts on the types of learning that resonate with you. I’m also thinking about offering opportunities to learn about particular topics that I think people might be interested in (e.g. mapping with R). But again, I don’t know which topics will resonate with my audience unless I ask you. Nearly 200 of you were generous enough to respond to the...

R is Not Just for Big Data

March 26, 2020

“Oh yeah, I thought about learning R, but my data isn’t that big so it’s not worth it.” I've heard that line more times than I can count. There is a common perception among non-R users that R is only worth learning if you work with "big data." It's not a totally crazy idea. R is a common tool among people who work with big data. But just because those who work with big data use R does not mean that R is not valuable for the rest of us. I rarely work with datasets larger than a few hundred...

Data Cleaning Tips in R

February 28, 2020

I recently came across a set of data cleaning tips in Excel from EvaluATE, which provides support for people looking to improve their evaluation practice. As I looked through the tips, I realized that I could show how to do each of the five tips listed in the document in R. Many people come to R from Excel so having a set of R to Excel equivalents (also see this post on a similar topic) is helpful. The tips are not intended to be comprehensive, but they do show some common things that people...

My R Journey: Ryan Ames

February 3, 2020

When I came across Ryan Ames' LinkedIn profile, I was struck by how similar his work is to my own. Based in Portland (like me), he works at the intersection of data science and program evaluation (the field I worked in prior to starting R for the Rest of Us). My curiosity piqued at seeing a professional doppelgänger, I reached out to ask if he'd answer some questions about his path to R. He kindly agreed and you can see the results below. Ryan also shared a bit about his professional and...

Recoding Numeric Values to Character Values Automatically in R

January 13, 2020

After a recent Introduction to R workshop, a participant asked me a question. She works with data that comes to her with all numeric values, but these numeric actually represent character values. Every time she receives new data, she has to recode it manually in Excel, a situation she described to me via email: A lot of the variables share the same code (we use a few different likert scales for groups of questions) and then others may only be used once (gender, race, etc.). I've been trying...