string_count | R Documentation |
Count the number of occurrences of a string over a data frame row-wise
string_count(df, pattern = "", new_colname = "count")
df |
A dataframe |
pattern |
A pattern to pass to |
new_colname |
The newly-mutated colname. Default to "count". |
A mutated dataframe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.