Looping in R

Learn how to use loops in R.

Wouter Steenbeek https://nscr.nl/en/medewerker/wouter-steenbeek/
02-17-2022

A loop is a sequence of one or more R commands that is carried out repeatedly. In this workshop meeting you will learn how to efficiently program loops in R

Join this workshop meeting on Zoom by clicking this link

By way of preparation, you might want to install two packages:

install.packages(“tidyverse”)

install.packages(“foreach”)

Wouter Steenbeek is a senior researcher at the Netherlands Institute for the Study of Crime and Law Enforcement (NSCR). He started using R around 2012. His main research interests are in spatial patterns of crime and quantitative research methods.

Citation

For attribution, please cite this work as

Steenbeek (2022, Feb. 17). NSC-R Workshops: Looping in R. Retrieved from https://nscrweb.netlify.app/posts/2022-02-17-looping-in-r/

BibTeX citation

@misc{steenbeek2022looping,
  author = {Steenbeek, Wouter},
  title = {NSC-R Workshops: Looping in R},
  url = {https://nscrweb.netlify.app/posts/2022-02-17-looping-in-r/},
  year = {2022}
}