Learn R Programming

eye (version 1.2.1)

str_search: String search helper

Description

whole_str finds haystack with "whole needles" with any non character as boundaries

part_str finds haystacks that match any of the needles

both_str will find haystacks that contain both needles

Usage

whole_str(haystack, needle)

part_str(haystack, needle)

both_str(haystack, needle)

Arguments

haystack

object in which to look for the needle

needle

vector of strings to look for - accepts regular expressions

See Also

Other string matching functions: getElem, recodeye(), sort_substr()