NSC-R Tidy Tuesday

Improve your R skills in entertaining, inspiring and supportive sessions moderated by your own colleagues.

Sam Langton https://nscr.nl/en/medewerker/sam-langton/
04-05-2022

The NSC-R Tidy Tuesday workshop sessions are inspired by the Tidy Tuesday initiative, which was aimed at providing a safe and supportive forum for individuals to practice their data processing and visualization skills in R while working with real-world data.

In this session, Sam Langton demonstrated long to wide (and wide to long) transformations using functions available in the tidyr package using data from the London Fire Brigade.

Sam Langton is a postdoc researcher on the evidence-based policing programme at the NSCR. His research focuses on describing and explaining the spatial and temporal patterning of police demand. Sam is interested in promoting open science in criminology, particularly through open data and sharing his knowledge (and struggles) in R.

Materials

How to download files from GitHub

To download files from GitHub you can:

Clone the repository to create a local copy in your computer. To clone a repository, follow the instructions here.

Alternatively, you can:

  1. Download all files compressed in a ZIP. To do this, go to the repository and click on the green code button, then select download ZIP. Unzip the downloaded file into a folder on your local computer.
  2. Download a specific file. To do this, select the desired file in the repository and click on the raw button. Then right click on the new page and select save as. Don’t forget to put the proper extension in the save name, like .R or .Rmd.

Citation

For attribution, please cite this work as

Langton (2022, April 5). NSC-R Workshops: NSC-R Tidy Tuesday. Retrieved from https://nscrweb.netlify.app/posts/2022-04-05-nsc-r-tidy-tuesday/

BibTeX citation

@misc{langton2022nsc-r,
  author = {Langton, Sam},
  title = {NSC-R Workshops: NSC-R Tidy Tuesday},
  url = {https://nscrweb.netlify.app/posts/2022-04-05-nsc-r-tidy-tuesday/},
  year = {2022}
}