items
jumping rivers
Menu
  • Home 
  • About
    • Overview 
    • Join Us 
    • Community 
    • Conferences 
    • Contact 
  • Training
    • Overview 
    • Course Catalog 
    • Public 
  • Posit
    • Overview 
    • License Resale 
    • Managed Services 
    • Health Check 
  • Data Science
    • Overview 
    • Visualisation and Dashboards 
    • Open-Source Data Science 
    • Data Science as a Service 
  • Data Engineering
    • Overview 
    • Cloud Solutions 
    • Enterprise Applications 
  • Our Work
    • Blog 
    • Case Studies 

expression

Regular Expressions Every R programmer Should Know

Published: April 12, 2018

tags: r, regex, regular, expression, stringr,

Regular expressions. How they can be cruel! Well we’re here to make them a tad easier. To do so we’re going to make use of the {stringr} package install.packages("stringr") library("stringr") We’re going to use the str_detect() and str_subset() functions. In particular the latter. These have the syntax function_name(STRING, REGEX_PATTERN) str_detect() is used to detect whether a string contains a certain pattern. At the most basic use of these functions, we can match strings of text.

Recent Posts

  • Using Google Lighthouse for Web Pages
  • Training Lineup for 2024: January-June
  • Getting started with theme()
  • Python Virtual Environments and Barbie
  • SatRdays London 2024
  • Sluggish system or client code?
  • Highlights from Shiny in Production (2023)
  • An Introduction to Python Package Managers
  • Shiny in Production: Sponsors
  • Reproducible reports with Jupyter

Top Tags

  • r (167)
  • python (55)
  • shiny (39)
  • tidyverse (16)
  • conferences (15)
  • training (12)
  • packages (11)
  • events (10)
  • stan (9)
  • graphics (8)

Follow Us

  • GitHub
  • Twitter
  • LinkedIn
  • YouTube
  • Eventbrite

Find Us

The Catalyst

Newcastle Helix

Newcastle, NE4 5TG

Get Directions

Contact Us

  • hello@jumpingrivers.com
  • + 44(0) 191 432 4340

Newsletter

Sign up

Events

  • North East Data Scientists Meetup
  • Leeds Data Science Meetup
  • SatRdays London 2024
  • Shiny in Production 2024
British Assessment Bureau, UKAS Certified logo for ISO 9001 - Quality managment British Assessment Bureau, UKAS Certified logo for ISO 27001 - Information security management

©2016 - present. Jumping Rivers Ltd

  • Privacy Notice
  • |
  • Booking Terms