• About the author
  • Colleagues
  • Contract work
  • Recordings

The Mnemonic Lode

Memory. Measurement. Life in Academia.

  • About the author
  • Colleagues
  • Contract work
  • Recordings

Wrangling messy data in R using the tidyverse

November 19, 2019 Measurement Openness No Comments

When I was learning R, I found the biggest obstacle to be figuring out how to organize and format the data – how to go from raw, messy data to something I could enter into an analysis. This process has become much easier with the introduction of the tidyverse suite of packages. Over the past several months, I have been adopting the tidyverse syntax and applying it to my new scripts. Compared to my old routines, I’m finding this syntax much more transparent and readable, and I think it will make overcoming the obstacle of learning data wrangling in R much, much easier for new users.

If you have been tempted to switch to R, but have been stymied by data wrangling, I hope you find this notebook I’ve written useful. To learn tidyverse, I took a large data set of output from the automated operation span created by Prof. Randy Engle’s lab (collected by Dr. Jonathan Mall when he worked with me at Rijksuniversiteit Groningen), and created data frames focusing on the processing responses and individual, trial-level memory responses. The program is designed to conveniently output summary scores. These trial level data are available, but need a lot of wrangling to be made useful for analysis. In the notebook, I describe what steps were needed to wrangle the raw data, and how to implement them.

open datascriptingtidyversetransparency

Alessandra Souza, the 2019 WomWoM Research Fairy

In memoriam, Bill

Leave a Reply Cancel reply

Recent Posts

  • In memoriam, Bill
  • Wrangling messy data in R using the tidyverse
  • Alessandra Souza, the 2019 WomWoM Research Fairy
  • #WomWom: A wand award for the 2018 research-fairy
  • I’ve got a lab handbook now

Recent Comments

  • Alessandra on Alessandra Souza, the 2019 WomWoM Research Fairy
  • Alessandra Souza, the 2019 WomWoM Research Fairy – The Mnemonic Lode on #WomWom: A wand award for the 2018 research-fairy
  • Candice Morey on #WomWom: A wand award for the 2018 research-fairy
  • Candice Morey on Going for a Registered Report?
  • Alessandra Souza on Going for a Registered Report?

Archives

  • May 2020
  • November 2019
  • November 2018
  • August 2018
  • July 2018
  • May 2018
  • January 2018
  • August 2017
  • May 2017
  • April 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • June 2016
  • May 2016
  • March 2016
  • February 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015

Categories

  • Academia
  • Measurement
  • Openness
  • Research
  • Uncategorized
  • WomWoM

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

About me

  • About the author
  • Colleagues
  • Contract work
  • Recordings
Proudly powered by WordPress | Theme: Doo by ThemeVS.