Description Usage Arguments Details Value Examples
Count the number of separators in a column as the basis for the calculation of the number of columns to separate a column into using separate() in tidyr. Provides input to separate_gather
1 |
data |
A data frame |
col |
column containing separators to count |
sep |
separator |
Calculates the maximum number of separators in a column (typically ';'). When dividing values by a separator note that the final entry will not be marked by a separator. To address this the function uses +1. Caution should be exercised when using ',' as a separator when using person or organisation names containing this punctuation to separate first and second names etc.
numeric count of separators
1 | ## Not run: sep_count(data, col = "authors", sep = ";")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.