regex: finding patterns in [text] strings
Code: https://github.com/libjohn/workshop_rfun_iterate full video series -- playlist -- https://www.youtube.com/watch?v=PrUnbYlC1kY&list=PLIUcX1JrVUNWW7RgPh9ysmJM3mBpIAlYG Using the case-study of data cleaning, this modular video series will demonstrate iteration with `purrr::map()` and custom functions while also showing several Tidyverse tips and tricks. This individual video (# 2-A) in the series presents the concept of regex, aka regular expressions. Coders use regex to finding patterns in text and almost every computer user unwittingly uses regex in their periodic find-and-replace operations. This video is about applying regex in a Tidyverse/R context. Each #IterateFunctionsR video will become progressively more fluent, using building-blocks to present intermediate data manipulation techniques in R and the Tidyverse. By the end of the series you'll learn how to use the purrr package, a very convenient package in support of iterating over list-columns and nested data frames. purrr::map() iteration is often more convenient and efficient than a **For-loop**. You'll also learn how to compose custom functions in R. since R is a functional programming language, composing your own custom functions can increase your fluency as an R coder. Contents: 0:00 - introduction 1:00 - regex definition (regular expressions) 1:55 - strategy for regex pattern matching in the Tidyverse 2:28 - regex coding explanation - introduction to regex codes 4:08 - stringr functions coding demonstration Materials available at https://github.com/libjohn/workshop_rfun_iterate stringr cheatsheet - https://stringr..tidyverse.org More Rfun at https://Rfun.library.duke.edu/ Part of the CDVS Workshop Series: http://library.duke.edu/data/
Download
0 formatsNo download links available.