matched_comments: Find comment in list of comments where all/any of search...

View source: R/filter_text.R

matched_commentsR Documentation

Find comment in list of comments where all/any of search strings exist

Description

Find comment in list of comments where all/any of search strings exist

Usage

matched_comments(lowered_comments, search_fn, search_strings)

Arguments

lowered_comments

list of strings in lowercase

search_fn

type of search type ('and', 'or')

search_strings

list of strings with search terms in it

Value

list of logical values

Examples

matched_comments(
  lowered_comments = c(
    "tricky times, I recommend quick appraisals ",
    "time of my situation is quick",
    ">quick response time, competent appraisal of my situation"
  ),
  search_fn = all, search_strings = c("quick", "time", "appraisal")
)

CDU-data-science-team/experiencesdashboard documentation built on Nov. 30, 2023, 5:57 a.m.