find_in_string: Find a vector of strings/numbers in a single string.

View source: R/find_in_string.R

find_in_stringR Documentation

Find a vector of strings/numbers in a single string.

Description

find_in_string returns the sum of all the values present in its arguments.

Usage

find_in_string(b, a)

Arguments

b

numeric or character vector, which includes all the elements you are looking for.

a

the string to be searched

Details

searches for all elements of vector b in string a, and returns true/false depending on whether or not all the elements in b can also be found in a, regardless of order.

Value

boolean. True or False

Examples

b<-c("i", "x", "v")
a<-"ix"
c <-"vix"
find_in_string(b,a)
find_in_string(b,c)

gdaher/invector documentation built on Feb. 8, 2023, 8:40 a.m.