Skip to content

intro-to-data-science-22-workshop/06-string-manipulation-with-stringr-garcia-werner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

String Manipulation with Stringr

Tutorial on R Package "stringr" by Richard Garcia-Guerrero & Adrian Werner

Summary

This repository provides materials to learn how to manipulate strings in R using the "stringr" package. It includes a presentation in PowerPoint format providing an overview of "stringr", as well as an R Markdown (RMD) file containing basic exercises to practice using "stringr" functions.

It is part of the I2DS Tools for Data Science workshop run at the Hertie School, Berlin in November 2022. The student-run workshop is part of the course Introduction to Data Science taught by Simon Munzert at the Hertie School, Berlin, in Fall 2022.

Session contents

This session is divided into two parts: the presentation and the tutorial.

Presentation (PPT format)

The presentation introduces the participant to string, its uses, and its prevalence in R workflow. Then, it introduces the "stringr" package, describing its functionalities across various categories.

The presentation concludes with a brief overview of regular expressions, and its role in "stringr" commands.

Tutorial (RMD format)

The tutorial provides an opportunity for the participant to familiarize themselves with basic "stringr" functions, as well as regular expressions to supplement their use of "stringr" functionalities.

Main learning objectives

Upon completion, participants will understand what a string is, its use in R workflow, and how to use the "stringr" package to:

  • detect matches,
  • mutate strings,
  • subset strings,
  • join and split strings,
  • manage the length of strings,
  • sort and order strengths,
  • and more.

Instructors

Further resources

License

The material in this repository is made available under the MIT license.

Statement of contributions

Adrian Werner prepared the practice material. He also reviewed and corrected the presentation slides.

Richard Garcia-Guerrero prepared the presentation slides and recording. He also reviewed and corrected the practice material.

About

Tutorial on R Package "stringr" by Richard Garcia-Guerrero & Adrian Werner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published