return_search_text | R Documentation |
combine search terms with OR and AND then return text from a specific question
return_search_text(
text_data,
filter_text,
comment_type_filter = NULL,
search_type = c("or", "and"),
return_dataframe = TRUE
)
text_data |
the dataframe, raw from the database |
filter_text |
comma separated string with search terms in |
comment_type_filter |
which comment to return- 1 or 2 |
search_type |
type of search ('and', 'or') |
return_dataframe |
should the output be a dataframe or an html string |
string vector of search terms, separated by <p>, </p> for display as raw HTML by Shiny or a dataframe
return_search_text(
text_data = data.frame(
comment_txt = c(
"tricky times, I recommend quick appraisals ",
"time of my situation.", ">quick response time, competent appraisal of my situation"
),
comment_type = c("comment_1", "comment_1", "comment_1")
),
filter_text = "Uick, time, appraisal$, &!",
comment_type_filter = "comment_1", search_type = "and",
return_dataframe = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.