identify_hazard: Identify Hazard in Lines of Text

Description Usage Arguments Value

View source: R/hazmat.R

Description

Identify Hazard in Lines of Text

Usage

1
identify_hazard(lines, pattern, color = function(x) x, emoji = "")

Arguments

lines

a character vector of to check for hazards

pattern

a regexp to identify the hazard

color

a function to highlight the hazard within a line of text

emoji

an emoji to include in the the output

Value

a tibble with lines of text which match the hazard along with the corresponding line numbers


actuarialvoodoo/hazmat documentation built on Nov. 25, 2019, 9:26 a.m.