grapes-within-grapes: Check for character within string

Description Usage Arguments Examples

Description

Simple wrapper that checks if a character or substring has an exact match in a string. Really just a wrapper around grepl.

Usage

1
char %within% string

Arguments

char

a character or substring to look for

string

a string in which to match the character or substring

Examples

1
2
3
4
if ("w" %within% "hello, world!")
  print("Found it!")

"char" %within% "character string"

blmoore/pythonistr documentation built on May 20, 2019, 3:34 p.m.