Loop a filter over words in a string until there are zero rows This function splits a string based on the provide split argument, and recursively filters a dataframe for those words at a given column. It differs from the filter_by_words_in_str function because it returns a dataframe if the loop ends up evaluating to zero rows.
1 | filter_by_words_in_str_before_zero(string, split, dataframe, col)
|
string |
string of words or other tokens to loop the filter over |
split |
split argument for the strsplit function applied to the string parameter |
dataframe |
input data |
col |
column to filter against |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.